Ticket #1712 (closed enhancement: fixed)
aspectRatio option for resizables
| Reported by: | c_t | Owned by: | paul |
|---|---|---|---|
| Priority: | major | Milestone: | 1.2.2 |
| Component: | ui | Version: | 1.2.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Hi All!
I have written a small enhancement for the resizables (see attachment).
Now there is one additional configuration option aspectRatio. You can either set this to 'preserve' or to any floating point number defining an aspect ratio between width/height .
If set to preserve the aspect ratio is calculated from the initial width and height of the resizable element.
Pressing the shift-key now simply enables the aspectRatio: preserve option temporarily.
I'd love to see this enhancement in the next release!
Cheers, Christoph
Attachments
Change History
Changed 6 years ago by c_t
-
attachment
resizable_aspectRatio.diff
added
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

aspectRatio option for resizables.