Skip to content

Commit

Permalink
Dialog: force the dialog to be visible before trying to position it s…
Browse files Browse the repository at this point in the history
…o we can get the current offset (required for using .offset() as a setter).
  • Loading branch information
scottgonzalez committed Jan 7, 2010
1 parent b413302 commit fb577af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/jquery.ui.dialog.js
Expand Up @@ -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'); var isVisible = this.uiDialog.is(':visible');
if (!isVisible) { if (!isVisible) {
this.uiDialog.show(); this.uiDialog.show();
Expand Down

0 comments on commit fb577af

Please sign in to comment.