Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#2290 closed bug (fixed)

resizable's aspectRatio-preservation buggy (all handles, except SE)

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


Looking at the code I suppose ui.resizable is meant to support preservation of aspectRatio either by specifying the aspectRatio = true option or by pressing the SHIFT-key.

However most of the handles are really buggy when the SHIFT-key is pressed especially the N/NW/NE-handles... Also I would expect from the E-handle that - while the SHIFT key is pressed - the resizable resizes to top AND bottom and not only to the bottom...

I know that it is quite difficult to properly implement such an aspect ratio preservation since I tried it myself and failed. A lot of margins have to be recalculated over and over again. But I remember that Interface had a properly working implementation, so maybe just have a look at the way they calculated the margin's there?

I think this is a pretty essential feature since it adds so much use to the resizables (e.g. without it an image-cropper where a given aspect ratio is essential will not be possible). I would highly appreciate it if this feature would make it into the 1.5 beta!

I've also described this problem in #2145 but since the basic funcionality has been implemented I think it's no enhancement anymore but a bug.

Change History (4)

comment:1 Changed 15 years ago by paul

Owner: changed from paul to braeker

comment:2 Changed 15 years ago by braeker

Resolution: fixed
Status: newclosed

comment:3 Changed 15 years ago by (none)

Milestone: 1.2.3

Milestone 1.2.3 deleted

comment:4 Changed 14 years ago by paul

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