Dialog: Have _makeResizable look at options instead of passing handles.

This commit is contained in:
Jörn Zaefferer 2012-11-15 23:00:47 +01:00
parent 16a79c1b9c
commit c8aef203cb

View File

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