title: Sitecore set SPEAK UI dialog size when opening from WebEdit command
body: <p>I have a custom experience button for the page editor in Sitecore which references a custom command. What is the correct way to open a SPEAK dialog from this context and how should the width/height of the dialog be set?</p>
  
  <p>I have the following command code:</p>
  
  <pre><code>public class MySpecialCommand : Sitecore.Shell.Applications.WebEdit.Commands.WebEditCommand
  {
      public override void Execute(Sitecore.Shell.Framework.Commands.CommandContext context)
      {
          var parameters = new NameValueCollection();
          //add various parameters etc 
          Context.ClientPage.Start((object) this, "Run", parameters);
      }
  
      protected void Run(ClientPipelineArgs args)
      {
          if (!args.IsPostBack)
          {           
              string url = "/sitecore/client/your%20apps/somespeakdialog?sc_lang=en&amp;someParam" + args.Parameters["someParam"];
              SheerResponse.ShowModalDialog(url, "100", "200", string.Empty, true);
              args.WaitForPostBack();
          }
          else if (args.HasResult)
          {
              //not got this far yet...
          }
      }
  }
  </code></pre>
  
  <p>and I am finding that the size of the dialog bears no resemblance to the <code>width</code> and <code>height</code> parameters passed to <code>SheerResponse.ShowModalDialog</code>. I have also tried passing in values suffixed with "px" but this does not help.</p>