diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-01-15 02:16:21 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-01-15 02:16:21 +0000 |
commit | c313289d0034fa3f94d9d3c19f65c2f4cff58190 (patch) | |
tree | 80926831a19331ffc93ecea8873263af6c9f2d82 /ui | |
parent | 486373239f82adacfe816adf38ecc50a1e39e43e (diff) | |
download | jquery-ui-c313289d0034fa3f94d9d3c19f65c2f4cff58190.tar.gz jquery-ui-c313289d0034fa3f94d9d3c19f65c2f4cff58190.zip |
Dialog: workaround for positioning bug.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.dialog.js | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 6635499ec..15cbf40f7 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -426,13 +426,16 @@ $.widget("ui.dialog", { if (!isVisible) { this.uiDialog.show(); } - this.uiDialog.position({ - my: myAt.join(' '), - at: myAt.join(' '), - offset: offset.join(' '), - of: window, - collision: 'fit' - }); + this.uiDialog + // workaround for jQuery bug #5781 http://dev.jquery.com/ticket/5781 + .css({ top: 0, left: 0 }) + .position({ + my: myAt.join(' '), + at: myAt.join(' '), + offset: offset.join(' '), + of: window, + collision: 'fit' + }); if (!isVisible) { this.uiDialog.hide(); } |