Skip to content
Permalink
Browse files

Resizable: Partial fix for supporting jQuery objects in alsoResize.

Dialog: Fixed bug with content resizing.
  • Loading branch information
scottgonzalez committed Dec 23, 2008
1 parent 8a01ecf commit 22ca3849f7d2dde79c7eacdf7204438cfa075549
Showing with 2 additions and 2 deletions.
  1. +1 −1 ui/ui.dialog.js
  2. +1 −1 ui/ui.resizable.js
@@ -308,7 +308,7 @@ $.widget("ui.dialog", {

this.uiDialog.resizable({
cancel: '.ui-dialog-content',
alsoResize: this.element[0],
alsoResize: this.element,
helper: options.resizeHelper,
maxWidth: options.maxWidth,
maxHeight: options.maxHeight,
@@ -606,7 +606,7 @@ $.ui.plugin.add("resizable", "alsoResize", {
});
};

if (typeof(o.alsoResize) == 'object' && !o.alsoResize.parentNode) {
if (typeof(o.alsoResize) == 'object' && !o.alsoResize.nodeType) {
$.each(o.alsoResize, function(exp, c) { _alsoResize(exp, c); });
}else{
_alsoResize(o.alsoResize);

0 comments on commit 22ca384

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