Skip to main content

Search and Top Navigation

#2145 closed enhancement (fixed)

Opened January 11, 2008 10:06AM UTC

Closed February 11, 2008 03:27AM UTC

Last modified February 26, 2009 11:23AM UTC

ui.resizable should be able to preserve the aspectRatio

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

The ui.resizable should be able to preserve the aspectRatio.

I think the best way would be to allow different kinds of aspectRatio preservation:

  • If no option is specified and the SHIFT-Key is pressed during resize, the aspect ratio should be conserved.
  • If let's say "aspectRatio == 'preserve'" then the aspectRatio should be calculated from the resizable element's original size and be preserved.
  • If let's say "aspectRatio == 1.5" an aspect ratio of 1.5 should be forced on resize, even if the original resizable element's aspect ratio was different.

All in all the preservation of the aspectRatio should behave like we all are used to from e.g. photoshop: Dragging the E-handler resizes the resizeable to top and bottom, dragging the SE-handler resizes to bottom and right, etc. pp.

Optionally adding a functionality to the ALT-key could be a nice feature: Then, not the opposite drag-handler should be the point of reference for the resizing but the center of the resizable (i.e. dragging the S-handler resizes to both, top and bottom, not only towards the bottom).

Attachments (0)
Change History (4)

Changed February 08, 2008 04:20PM UTC by paul comment:1

owner: paulbraeker

Changed February 11, 2008 03:27AM UTC by braeker comment:2

resolution: → fixed
status: newclosed

Changed May 24, 2008 03:39AM UTC by comment:3

milestone: 1.2.2

Milestone 1.2.2 deleted

Changed February 26, 2009 11:23AM UTC by paul comment:4

milestone: → 1.5