It actually does size it on the first open, but it does so by sizing the
content element, .ui-dialog-content. The reason you're not getting a 70px
high dialog is because the default value for minHeight is 150. See:

http://docs.jquery.com/UI/Dialog#option-minHeight

You're not the first one to get tripped up by this, so we're going to fix it
in the future so that height will trump minHeight. See

http://groups.google.com/group/jquery-ui-dev/browse_thread/thread/f40ed53ede3d5d24

- Richard

On Fri, Mar 20, 2009 at 4:56 PM, Randy Merrill <[email protected]> wrote:

>
> I have a dialog window that I have defined as:
>
> var top = 50;
> var left = 35;
>
> $('#commandMenu').dialog({
>        draggable: true,
>        height: 70,
>        width: 180,
>        position: [left, top]
> });
>
> When I open the dialog box and firebug inspect it the style for the
> height is auto. Once I have dragged the dialog the height gets set to
> the right size. Is there some setting that I am missing that tells it
> to resize on the first open?
>
> I'm using the latest 1.3.2 of jQuery and the 1.7.1 or jQuery UI.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to