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).

This commit is contained in:
Scott González 2010-01-07 04:49:25 +00:00
parent b413302c00
commit fb577af2a2

View File

@ -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();