diff options
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r-- | ui/jquery.ui.dialog.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 81df1d19b..c53169b5b 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -57,7 +57,6 @@ $.widget("ui.dialog", { position: { my: 'center', at: 'center', - of: window, collision: 'fit', // ensure that the titlebar is never outside the document using: function(pos) { @@ -528,7 +527,7 @@ $.widget("ui.dialog", { this.uiDialog // workaround for jQuery bug #5781 http://dev.jquery.com/ticket/5781 .css({ top: 0, left: 0 }) - .position(position); + .position($.extend({ of: window }, position)); if (!isVisible) { this.uiDialog.hide(); } |