mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-01-29 10:57:59 -05:00
Resizable: Partial fix for supporting jQuery objects in alsoResize.
Dialog: Fixed bug with content resizing.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user