summaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.dialog.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-01-07 04:49:25 +0000
committerScott González <scott.gonzalez@gmail.com>2010-01-07 04:49:25 +0000
commitfb577af2a27a173a9e5b2c3d3fb09788b67bd15e (patch)
treece0c95386fdac5bb0e49d2f5553fc155740e32d5 /ui/jquery.ui.dialog.js
parentb413302c00881d9a6f0a1143038a7903c9049c11 (diff)
downloadjquery-ui-fb577af2a27a173a9e5b2c3d3fb09788b67bd15e.tar.gz
jquery-ui-fb577af2a27a173a9e5b2c3d3fb09788b67bd15e.zip
Dialog: force the dialog to be visible before trying to position it so we can get the current offset (required for using .offset() as a setter).
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r--ui/jquery.ui.dialog.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index b2ec2fcc1..be4842e8a 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -421,6 +421,7 @@ $.widget("ui.dialog", {
}
}
+ // need to show the dialog to get the actual offset in the position plugin
var isVisible = this.uiDialog.is(':visible');
if (!isVisible) {
this.uiDialog.show();