]> source.dussan.org Git - jquery-ui.git/commitdiff
Resizable: Partial fix for supporting jQuery objects in alsoResize.
authorScott González <scott.gonzalez@gmail.com>
Tue, 23 Dec 2008 14:55:41 +0000 (14:55 +0000)
committerScott González <scott.gonzalez@gmail.com>
Tue, 23 Dec 2008 14:55:41 +0000 (14:55 +0000)
Dialog: Fixed bug with content resizing.

ui/ui.dialog.js
ui/ui.resizable.js

index 5b2ce119c75a8d57bb461c3ab512ad27ebb65a96..2cb4d4447411a3d99d217c70b1f3e20923d8d21b 100644 (file)
@@ -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,
index 84cd6e4b531cb23cfcb26d3e16cf30c63cf75e54..c7b8524e3d2dc70ab88fcb2ab6fcc0f4516f4090 100644 (file)
@@ -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);