mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
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:
parent
b413302c00
commit
fb577af2a2
1
ui/jquery.ui.dialog.js
vendored
1
ui/jquery.ui.dialog.js
vendored
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user