Skip to content
Permalink
Browse files

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.
  • Loading branch information
scottgonzalez committed Jul 24, 2009
1 parent d6f7a57 commit 30bfc47c35e3bf3a21692ed1b588b258ebbae209
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/ui.dialog.js
@@ -461,7 +461,7 @@ $.widget("ui.dialog", {
self._position(value);
break;
case "resizable":
var isResizable = uiDialog.is(':ui-resizable');
var isResizable = uiDialog.is(':data(resizable)');

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

(this.uiDialog.is(':ui-resizable') &&
(this.uiDialog.is(':data(resizable)') &&
this.uiDialog.resizable('option', 'minHeight', this._minHeight()));
}
});

0 comments on commit 30bfc47

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