mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
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.
This commit is contained in:
parent
d6f7a57eb1
commit
30bfc47c35
@ -461,7 +461,7 @@ $.widget("ui.dialog", {
|
|||||||
self._position(value);
|
self._position(value);
|
||||||
break;
|
break;
|
||||||
case "resizable":
|
case "resizable":
|
||||||
var isResizable = uiDialog.is(':ui-resizable');
|
var isResizable = uiDialog.is(':data(resizable)');
|
||||||
|
|
||||||
// currently resizable, becoming non-resizable
|
// currently resizable, becoming non-resizable
|
||||||
(isResizable && !value && uiDialog.resizable('destroy'));
|
(isResizable && !value && uiDialog.resizable('destroy'));
|
||||||
@ -515,7 +515,7 @@ $.widget("ui.dialog", {
|
|||||||
height: Math.max(options.height - nonContentHeight, 0)
|
height: Math.max(options.height - nonContentHeight, 0)
|
||||||
});
|
});
|
||||||
|
|
||||||
(this.uiDialog.is(':ui-resizable') &&
|
(this.uiDialog.is(':data(resizable)') &&
|
||||||
this.uiDialog.resizable('option', 'minHeight', this._minHeight()));
|
this.uiDialog.resizable('option', 'minHeight', this._minHeight()));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user