Resizable: Partial fix for supporting jQuery objects in alsoResize.

Dialog: Fixed bug with content resizing.
This commit is contained in:
Scott González
2008-12-23 14:55:41 +00:00
parent 8a01ecf52f
commit 22ca3849f7
2 changed files with 2 additions and 2 deletions

View 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,

View 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);