Opened 8 years ago

Closed 3 years ago

Last modified 3 years ago

#4666 closed bug (fixed)

Resizable: alsoResize affects only the first element in jQuery object

Reported by: Mikko Rantanen Owned by:
Priority: major Milestone: 1.11.4
Component: ui.resizable Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

Description

If a jQuery object referring to several elements is used as the parameter to alsoResize, only the first element instance is affected by the resize.

(There also seems to be an undocumented feature with alsoResize that allows passing a dictionary object as the parameter where the keys are used to look up elements and the values restrict the dimensions in which the elements are resized. At least I couldn't find any references to this behavior anywhere.)

Attaching a html page that demonstrates the bug and the current behavior and a patch to fix the bug that should maintain the current behavior.

Attachments (2)

alsoresize.html (1.9 KB) - added by Mikko Rantanen 8 years ago.
Demonstration of the ticket
resizable-alsoresize.patch (2.2 KB) - added by Mikko Rantanen 8 years ago.
Patch for fixing the bug

Download all attachments as: .zip

Change History (12)

Changed 8 years ago by Mikko Rantanen

Attachment: alsoresize.html added

Demonstration of the ticket

Changed 8 years ago by Mikko Rantanen

Attachment: resizable-alsoresize.patch added

Patch for fixing the bug

comment:1 Changed 8 years ago by Scott González

Milestone: TBD1.8
Priority: minormajor

comment:2 Changed 8 years ago by Scott González

Depends on #4957.

comment:3 Changed 8 years ago by Scott González

Also see #3276.

comment:4 Changed 5 years ago by Scott González

Milestone: 1.9.02.0.0

comment:5 Changed 5 years ago by tj.vantoll

Keywords: haspatch added
Status: newopen
Summary: alsoResize affects only the first element in jQuery objectResizable: alsoResize affects only the first element in jQuery object

Verified this is still an issue in 1.9.1 - http://jsfiddle.net/tj_vantoll/gH9C3/.

comment:6 Changed 3 years ago by AdamRMerrifield

This is still an issue as of 1.11.0

http://jsfiddle.net/kKT23/1/

comment:7 Changed 3 years ago by Ben Mosher

Resolution: fixed
Status: openclosed

Resizable: alsoResize more than one element of a jQuery selection

Fixes #4666 Closes gh-1324 Closes gh-1461

Changeset: 19783fd3e6a6e6e02a2030028e8820076c3b1295

comment:8 Changed 3 years ago by Scott González

Keywords: alsoResize haspatch removed
Milestone: 2.0.01.12.0

comment:9 Changed 3 years ago by Ben Mosher

Resizable: alsoResize more than one element of a jQuery selection

Fixes #4666 Closes gh-1324 Closes gh-1461 (cherry picked from commit 19783fd3e6a6e6e02a2030028e8820076c3b1295)

Changeset: 31e7099709a3bccaae8f83d397951096835269a2

comment:10 Changed 3 years ago by Scott González

Milestone: 1.12.01.11.4
Note: See TracTickets for help on using tickets.