Opened 16 years ago

Closed 16 years ago

Last modified 14 years ago

#1711 closed bug (fixed)

Shift-Key behaviour in resizables buggy

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

Description

Hi all,

I was discovering this bug when investigating on the issue I described in Bug http://dev.jquery.com/ticket/1708 .

When the shift-key is pressed the width-height-ratio of a resizable is preserved on resize. However there were problems with the N, S, NE and NW handles. I was able to fix them, see the appended patch.

I still think it would be nicer if the resizable would expand to top and bottom when W or E handles are dragged and expand to left and right when S and N handles are dragged. At the current state the point of reference is the upper left corner. So dragging the S or N handles just resizes to the left and dragging the E or W handles just resizes to the bottom....

To acchieve the beforementioned behaviour I guess a cleanup and review of the calculations would be very helpful.

Cheers, Christoph

Attachments (1)

resizable_shiftkey.diff (943 bytes) - added by c_t 16 years ago.
Fixed shift-key behaviour of N, S, NE and NW handles

Download all attachments as: .zip

Change History (5)

Changed 16 years ago by c_t

Attachment: resizable_shiftkey.diff added

Fixed shift-key behaviour of N, S, NE and NW handles

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

Hey, thanks for the fixes! I think the desired behaviour is how it is now (compare with photoshop for example). Closed!

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.