Bug Tracker

Modify

Ticket #2290 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

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

Reported by: c_t Owned by: braeker
Priority: major Milestone: 1.2.3
Component: ui Version: 1.2.2
Keywords: Cc:
Blocking: Blocked by:

Description

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

comment:1 Changed 5 years ago by paul

  • Owner changed from paul to braeker

comment:2 Changed 5 years ago by braeker

  • Status changed from new to closed
  • Resolution set to fixed

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.