mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Dialog: Have _makeResizable look at options instead of passing handles.
This commit is contained in:
parent
16a79c1b9c
commit
c8aef203cb
6
ui/jquery.ui.dialog.js
vendored
6
ui/jquery.ui.dialog.js
vendored
@ -433,10 +433,10 @@ $.widget("ui.dialog", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// TODO why are handles passed by _setOption??
|
// TODO why are handles passed by _setOption??
|
||||||
_makeResizable: function( handles ) {
|
_makeResizable: function() {
|
||||||
handles = (handles === undefined ? this.options.resizable : handles);
|
|
||||||
var that = this,
|
var that = this,
|
||||||
options = this.options,
|
options = this.options,
|
||||||
|
handles = options.resizable,
|
||||||
// .ui-resizable has position: relative defined in the stylesheet
|
// .ui-resizable has position: relative defined in the stylesheet
|
||||||
// but dialogs have to use absolute or fixed positioning
|
// but dialogs have to use absolute or fixed positioning
|
||||||
position = this.uiDialog.css( "position" ),
|
position = this.uiDialog.css( "position" ),
|
||||||
@ -623,7 +623,7 @@ $.widget("ui.dialog", {
|
|||||||
|
|
||||||
// currently non-resizable, becoming resizable
|
// currently non-resizable, becoming resizable
|
||||||
if ( !isResizable && value !== false ) {
|
if ( !isResizable && value !== false ) {
|
||||||
this._makeResizable( value );
|
this._makeResizable();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user