Opened 16 years ago

Closed 16 years ago

Last modified 14 years ago

#1712 closed enhancement (fixed)

aspectRatio option for resizables

Reported by: c_t Owned by: paul
Priority: major Milestone: 1.5
Component: ui.core Version: 1.2.1
Keywords: Cc:
Blocked by: Blocking:

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 (1)

resizable_aspectRatio.diff (2.7 KB) - added by c_t 16 years ago.
aspectRatio option for resizables.

Download all attachments as: .zip

Change History (5)

Changed 16 years ago by c_t

Attachment: resizable_aspectRatio.diff added

aspectRatio option for resizables.

comment:1 Changed 16 years ago by paul

Owner: set to paul
Status: newassigned

comment:2 Changed 16 years ago by paul

Resolution: fixed
Status: assignedclosed

It's strange...somehow I was able to remove all checks in the switch block, and it still works. Only the ons with left/top modified, too don't work correctly, I don't know yet how to easily fix it.

comment:3 Changed 15 years ago by (none)

Milestone: 1.2.2

Milestone 1.2.2 deleted

comment:4 Changed 14 years ago by paul

Milestone: 1.5
Note: See TracTickets for help on using tickets.