From fb577af2a27a173a9e5b2c3d3fb09788b67bd15e Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 7 Jan 2010 04:49:25 +0000 Subject: 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). --- ui/jquery.ui.dialog.js | 1 + 1 file changed, 1 insertion(+) 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(); -- cgit v1.2.3