Skip to main content

Search and Top Navigation

#4603 closed bug (fixed)

Opened June 15, 2009 09:49AM UTC

Closed December 03, 2012 03:37PM UTC

Last modified December 03, 2012 03:37PM UTC

Resizable: alsoResize option doesn't work with containment

Reported by: GoZ Owned by:
Priority: minor Milestone: 1.10.0
Component: ui.resizable Version: 1.7.2
Keywords: alsoResize, containment Cc:
Blocked by: Blocking:

I have an image in a div. The div is resizable and has properties alsoResize:image and containment:'parent'.

When i resize the div and reach the containment limit, the image continue resizing.

Issue: Put $.ui.plugin.add("resizable", "alsoResize" ...) plugin after $.ui.plugin.add("resizable", "containment" ...) plugin and it works great.

Attachments (1)
Change History (10)

Changed June 15, 2009 10:44AM UTC by GoZ comment:1

I forgot a propertie. I use aspectRatio to. So it's why i don't want the image be resized when i reach the containment limit.

Changed June 16, 2009 10:45AM UTC by jzaefferer comment:2

milestone: TBD1.8

Changed September 30, 2009 06:00PM UTC by sc0rchin comment:3

I can confirm that by moving;

$.ui.plugin.add("resizable", "alsoResize" ...)

to end of the script file after;

$.ui.plugin.add("resizable", "containment" ...)

this bug is fixed.

Changed May 10, 2010 12:31PM UTC by watanabe comment:4

I think this bug caused #5559., and like #4624.

"adding 'containment' first" may be better than "moving 'alsoResize' to end of the 'containment'".

(other plugins in 'resizable' should respect 'containment'.)

Changed May 11, 2010 02:03AM UTC by watanabe comment:5

'grid' may be the 'second' plugin.

Changed May 18, 2011 02:17PM UTC by scottgonzalez comment:6

#7393 is a duplicate of this ticket.

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


Changed November 01, 2012 01:17AM UTC by tj.vantoll comment:8

status: newopen
summary: AlsoResize doesn't work fine with containmentResizable: alsoResize option doesn't work with containment

Verified this is still an issue in 1.9.1 -

Changed December 03, 2012 03:37PM UTC by Scott González comment:9

resolution: → fixed
status: openclosed

Resizable: Respect containment for alsoResize option. Fixes #4603 - Resizable: alsoResize option doesn't work with containment. Fixes #5559 - Dialog: Content grows bigger than widget on resize at document edge.

Changeset: 5ba267e7c78f0bc257383c822d241c5369e8e49d

Changed December 03, 2012 03:37PM UTC by scottgonzalez comment:10