Ticket #3276 (new bug)
"AlsoResize" should be relative to this.element
| Reported by: | anonymous | Owned by: | eduardo |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.9 |
| Component: | ui.resizable | Version: | 1.6b |
| Keywords: | Cc: |
Description
The element '.ui-resizable-also' in the example below should be relative to this.element just like the ui-resizable-handle.
$('ui-resizable').resizable({alsoResize: '.ui-resizable-also'});
Using the workaround below doesn't work (get an exception in _start):
$('.ui-resizable').each(function(){ $(this).resizable({alsoResize: $('.ui-resizable-also', this)}); });
My patch is:
--- ui.resizable.orig.js 2008-08-18 11:34:59.673873000 +0100 +++ ui.resizable.js 2008-09-01 20:25:13.702663000 +0100 @@ -730,7 +730,7 @@
if (o.alsoResize.length) { o.alsoResize = o.alsoResize[0]; _store(o.alsoResize); } else { $.each(o.alsoResize, function(exp, c) { _store(exp); }); }
}else{
- _store(o.alsoResize); + _store($(o.alsoResize, this.element));
}
},
@@ -758,7 +758,7 @@
if (typeof(o.alsoResize) == 'object') {
$.each(o.alsoResize, function(exp, c) { _alsoResize(exp, c); });
}else{
- _alsoResize(o.alsoResize); + _alsoResize($(o.alsoResize, this.element));
}
},
![(please configure the [header_logo] section in trac.ini)](/chrome/site/nologo.gif)