Skip to content

Commit 22ca384

Browse files
committed
Resizable: Partial fix for supporting jQuery objects in alsoResize.
Dialog: Fixed bug with content resizing.
1 parent 8a01ecf commit 22ca384

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ui/ui.dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ $.widget("ui.dialog", {
308308

309309
this.uiDialog.resizable({
310310
cancel: '.ui-dialog-content',
311-
alsoResize: this.element[0],
311+
alsoResize: this.element,
312312
helper: options.resizeHelper,
313313
maxWidth: options.maxWidth,
314314
maxHeight: options.maxHeight,

ui/ui.resizable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ $.ui.plugin.add("resizable", "alsoResize", {
606606
});
607607
};
608608

609-
if (typeof(o.alsoResize) == 'object' && !o.alsoResize.parentNode) {
609+
if (typeof(o.alsoResize) == 'object' && !o.alsoResize.nodeType) {
610610
$.each(o.alsoResize, function(exp, c) { _alsoResize(exp, c); });
611611
}else{
612612
_alsoResize(o.alsoResize);

0 commit comments

Comments
 (0)