Ticket #4603 (closed bug: fixed)
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: | |
| Blocking: | Blocked by: |
Description
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
Change History
Changed 4 years ago by sc0rchin
-
attachment
resizable_ticket_4603.html
added
html visual test of ticket #4603
comment:3 Changed 4 years ago by sc0rchin
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.
comment:4 in reply to: ↑ description Changed 3 years ago by watanabe
comment:8 Changed 7 months ago by tj.vantoll
- Status changed from new to open
- Summary changed from AlsoResize doesn't work fine with containment to Resizable: alsoResize option doesn't work with containment
Verified this is still an issue in 1.9.1 - http://jsfiddle.net/tj_vantoll/rGJ7g/.
comment:9 Changed 6 months ago by Scott González
- Status changed from open to closed
- Resolution set to fixed
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


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.