Skip to content

Commit fb577af

Browse files
committed
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).
1 parent b413302 commit fb577af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/jquery.ui.dialog.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ $.widget("ui.dialog", {
421421
}
422422
}
423423

424+
// need to show the dialog to get the actual offset in the position plugin
424425
var isVisible = this.uiDialog.is(':visible');
425426
if (!isVisible) {
426427
this.uiDialog.show();

0 commit comments

Comments
 (0)