Ticket #3276 (new bug)

Opened 2 years ago

Last modified 10 months ago

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

}

},

Change History

Changed 20 months ago by scott.gonzalez

  • milestone changed from TBD to 1.next

Changed 10 months ago by scott.gonzalez

  • milestone changed from 1.next to 1.8

Depends on #4957.

Changed 10 months ago by scott.gonzalez

Also see #4666.

Note: See TracTickets for help on using tickets.