Dialog: workaround for positioning bug.

This commit is contained in:
Scott González 2010-01-15 02:16:21 +00:00
parent 486373239f
commit c313289d00

View File

@ -426,13 +426,16 @@ $.widget("ui.dialog", {
if (!isVisible) { if (!isVisible) {
this.uiDialog.show(); this.uiDialog.show();
} }
this.uiDialog.position({ this.uiDialog
my: myAt.join(' '), // workaround for jQuery bug #5781 http://dev.jquery.com/ticket/5781
at: myAt.join(' '), .css({ top: 0, left: 0 })
offset: offset.join(' '), .position({
of: window, my: myAt.join(' '),
collision: 'fit' at: myAt.join(' '),
}); offset: offset.join(' '),
of: window,
collision: 'fit'
});
if (!isVisible) { if (!isVisible) {
this.uiDialog.hide(); this.uiDialog.hide();
} }