diff options
author | Scott González <scott.gonzalez@gmail.com> | 2008-12-23 14:55:41 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2008-12-23 14:55:41 +0000 |
commit | 22ca3849f7d2dde79c7eacdf7204438cfa075549 (patch) | |
tree | fa7e47c210eccc9bb6459d851273ab34f0f409d1 | |
parent | 8a01ecf52fbcd5271e3dd2b0cf32092b30aae1f8 (diff) | |
download | jquery-ui-22ca3849f7d2dde79c7eacdf7204438cfa075549.tar.gz jquery-ui-22ca3849f7d2dde79c7eacdf7204438cfa075549.zip |
Resizable: Partial fix for supporting jQuery objects in alsoResize.
Dialog: Fixed bug with content resizing.
-rw-r--r-- | ui/ui.dialog.js | 2 | ||||
-rw-r--r-- | 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); |