Thanks, Richard!
Marc also propose the following solution to reposition it after the
content has loaded:
$(el).dialog('option', 'position', $(el).dialog('option',
'position'));
Stian
On Tue, Mar 17, 2009 at 11:01 AM, Richard D. Worth <[email protected]> wrote:
> I've seen this happen when a dialog is opened before the content has height.
> For example, if you call .dialog on an image that's still loading, the
> dialog will open immediately. Because the image is still loading, it doesn't
> yet have a height, giving the dialog no height. By the time the image
> finishes loading to give the dialog some height, it's already positioned,
> and won't automatically reposition itself.
>
> - Richard
>
> On Mon, Mar 16, 2009 at 7:46 AM, Stian <[email protected]> wrote:
>>
>> Hi,
>>
>> the Dialog box is centered correctly horizontally, but not vertically.
>> The top of the dialog is centered in the middle of the screen, and
>> tall dialogs will therefore cover the lower part of your screen. Is
>> this a bug, or am I doing something wrong? I tried fiddling with the
>> options, but nothing works.
>>
>> Stian
>>
>>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---