Skip to content
Permalink
Browse files

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

  • Loading branch information...
jzaefferer committed Nov 15, 2012
1 parent 16a79c1 commit c8aef203cbb76f8b362da483203381b049c01539
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/jquery.ui.dialog.js
@@ -433,10 +433,10 @@ $.widget("ui.dialog", {
},

// TODO why are handles passed by _setOption??
_makeResizable: function( handles ) {
handles = (handles === undefined ? this.options.resizable : handles);
_makeResizable: function() {
var that = this,
options = this.options,
handles = options.resizable,
// .ui-resizable has position: relative defined in the stylesheet
// but dialogs have to use absolute or fixed positioning
position = this.uiDialog.css( "position" ),
@@ -623,7 +623,7 @@ $.widget("ui.dialog", {

// currently non-resizable, becoming resizable
if ( !isResizable && value !== false ) {
this._makeResizable( value );
this._makeResizable();
}
}

0 comments on commit c8aef20

Please sign in to comment.
You can’t perform that action at this time.