You can tell the dialog to reposition by calling $(el).dialog
('option', 'position', positionSettings);

An easy way to mimic fixed positioning is:

$(document).bind('resize', function() {
    $(el).dialog('option', 'position', $(el).dialog('option',
'position'));
});

which just tells the dialog to position itself again using the pre-
existing position values.


On Dec 28, 5:17 pm, buntu <buntu.w...@gmail.com> wrote:
> Hi,
>
> I'm initializing the dialog with position: [900, 58] and it looks good
> until I resize the window. Upon window resize to reduce the viewport,
> horizontal scroll is introduced since the dialog is still at position
> [900, 58]. Can anyone please help provide a solution to make the
> dialog reposition or initialize the dialog the right way?
>
> Thanks for the help!

--

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


Reply via email to