r1249 - trunk/ui
r1249 - trunk/ui
Author: scott.gonzalez
Date: Tue Dec 23 06:55:41 2008
New Revision: 1249
Modified:
trunk/ui/ui.dialog.js
trunk/ui/ui.resizable.js
Log:
Resizable: Partial fix for supporting jQuery objects in alsoResize.
Dialog: Fixed bug with content resizing.
Modified: trunk/ui/ui.dialog.js
==============================================================================
--- trunk/ui/ui.dialog.js (original)
+++ trunk/ui/ui.dialog.js Tue Dec 23 06:55:41 2008
@@ -308,7 +308,7 @@
this.uiDialog.resizable({
cancel: '.ui-dialog-content',
- alsoResize: this.element[0],
+ alsoResize: this.element,
helper: options.resizeHelper,
maxWidth: options.maxWidth,
maxHeight: options.maxHeight,
Modified: trunk/ui/ui.resizable.js
==============================================================================
--- trunk/ui/ui.resizable.js (original)
+++ trunk/ui/ui.resizable.js Tue Dec 23 06:55:41 2008
@@ -606,7 +606,7 @@
});
};
- 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);