Skip to content
Permalink
Browse files

Dialog: force the dialog to be visible before trying to position it s…

…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 fb577af2a27a173a9e5b2c3d3fb09788b67bd15e
Showing with 1 addition and 0 deletions.
  1. +1 −0 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();

0 comments on commit fb577af

Please sign in to comment.
You can’t perform that action at this time.