From 22ca3849f7d2dde79c7eacdf7204438cfa075549 Mon Sep 17 00:00:00 2001 From: Scott González Date: Tue, 23 Dec 2008 14:55:41 +0000 Subject: Resizable: Partial fix for supporting jQuery objects in alsoResize. Dialog: Fixed bug with content resizing. --- ui/ui.dialog.js | 2 +- ui/ui.resizable.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index 5b2ce119c..2cb4d4447 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.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, diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js index 84cd6e4b5..c7b8524e3 100644 --- a/ui/ui.resizable.js +++ b/ui/ui.resizable.js @@ -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); -- cgit v1.2.3