Skip to content

Commit 30bfc47

Browse files
committed
Dialog: Use :data(resizable) instead of :ui-resizable to check if the dialog is resizable. Fixes a bug when the resizable plugin isn't loaded and the :ui-resizable selector therefore doesn't exist.
1 parent d6f7a57 commit 30bfc47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/ui.dialog.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ $.widget("ui.dialog", {
461461
self._position(value);
462462
break;
463463
case "resizable":
464-
var isResizable = uiDialog.is(':ui-resizable');
464+
var isResizable = uiDialog.is(':data(resizable)');
465465

466466
// currently resizable, becoming non-resizable
467467
(isResizable && !value && uiDialog.resizable('destroy'));
@@ -515,7 +515,7 @@ $.widget("ui.dialog", {
515515
height: Math.max(options.height - nonContentHeight, 0)
516516
});
517517

518-
(this.uiDialog.is(':ui-resizable') &&
518+
(this.uiDialog.is(':data(resizable)') &&
519519
this.uiDialog.resizable('option', 'minHeight', this._minHeight()));
520520
}
521521
});

0 commit comments

Comments
 (0)