Skip to main content

Search and Top Navigation

#4666 closed bug (fixed)

Opened July 10, 2009 07:01PM UTC

Closed March 04, 2015 01:53PM UTC

Last modified March 10, 2015 04:33PM UTC

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 July 10, 2009 07:02PM UTC.

    Demonstration of the ticket

  • resizable-alsoresize.patch (2.2 KB) - added by Mikko Rantanen July 10, 2009 07:02PM UTC.

    Patch for fixing the bug

Change History (10)

Changed August 12, 2009 12:42PM UTC by scottgonzalez comment:1

milestone: TBD1.8
priority: minormajor

Changed November 13, 2009 06:17PM UTC by scottgonzalez comment:2

Depends on #4957.

Changed November 13, 2009 07:34PM UTC by scottgonzalez comment:3

Also see #3276.

Changed October 11, 2012 02:52PM UTC by scottgonzalez comment:4

milestone: 1.9.02.0.0

Changed October 27, 2012 01:27AM UTC by tj.vantoll comment:5

keywords: alsoResizealsoResize haspatch
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/.

Changed July 13, 2014 01:15AM UTC by AdamRMerrifield comment:6

This is still an issue as of 1.11.0

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

Changed March 04, 2015 01:53PM UTC by Ben Mosher comment:7

resolution: → fixed
status: openclosed

Resizable: alsoResize more than one element of a jQuery selection

Fixes #4666

Closes gh-1324

Closes gh-1461

Changeset: 19783fd3e6a6e6e02a2030028e8820076c3b1295

Changed March 04, 2015 01:53PM UTC by scottgonzalez comment:8

keywords: alsoResize haspatch
milestone: 2.0.01.12.0

Changed March 10, 2015 04:31PM UTC by Ben Mosher comment:9

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

Changed March 10, 2015 04:33PM UTC by scottgonzalez comment:10

milestone: 1.12.01.11.4