#4951 closed bug (fixed)
Resizable with aspectRatio true & a maxWidth doesn't obey ratio once hit max width
Reported by: | DEfusion | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.8.14 |
Component: | ui.resizable | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If you create a resizable and provide it with the following options:
$("#test").resizable({ aspectRatio: true, maxWidth: 500 });
Then once the resizable gets to the maxWidth the height continues to resize ignoring the aspectRatio.
However providing the maxHeight option (instead of maxWidth) does obey the aspect and stops resizing both axes when hitting the maxHeight.
See the attached example which demonstrates the bug.
Attachments (1)
Change History (6)
Changed 13 years ago by
Attachment: | jquery_resizable_aspect_and_maxwidth.html added |
---|
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Milestone: | TBD → 1.8 |
---|
comment:3 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Resizable: correct aspectRatio handling with min/max dimensions. Fixed #4951 - Resizable with aspectRatio true & a maxWidth doesn't obey ratio once hit max width.
Changeset: 981e96948f45e5c5c32d005e379a5030c98c3d8d
comment:4 Changed 12 years ago by
Resizable: correct aspectRatio handling with min/max dimensions. Fixed #4951 - Resizable with aspectRatio true & a maxWidth doesn't obey ratio once hit max width. (cherry picked from commit 981e96948f45e5c5c32d005e379a5030c98c3d8d)
Changeset: b196d1fb611a4fa627a29e3ff973148ccbe00dfe
comment:5 Changed 12 years ago by
Milestone: | 1.9 → 1.8.14 |
---|
A few more details:
When setup with aspectRatio true & maxWidth
When setup with aspectRatio true & maxHeight