Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#2406 closed feature (fixed)

Proportional resizing using the Resizable

Reported by: Anotherhero Owned by: eduardo
Priority: minor Milestone: 1.5
Component: ui.core Version: 1.2.3
Keywords: Resizable proportional Cc:
Blocked by: Blocking:

Description

On line 325 there is if(e.shiftKey) nh = nw * (p[1]/p[0]);

Could this be replaced with

if(e.shiftKey
o.aspectResize) nh = nw * (p[1]/p[0]);

This allows you to force keeping proportions

Attachments (1)

ui.resizable.js (12.2 KB) - added by Anotherhero 12 years ago.
the ui.resizable.js with the fix applied

Download all attachments as: .zip

Change History (6)

Changed 12 years ago by Anotherhero

Attachment: ui.resizable.js added

the ui.resizable.js with the fix applied

comment:1 Changed 12 years ago by paul

Owner: changed from paul to braeker

comment:2 Changed 12 years ago by Anotherhero

if(e.shiftKey o.aspectResize) nh = nw * (p[1]/p[0]); should be

if(e.shiftKey || o.aspectResize) nh = nw * (p[1]/p[0]);

comment:3 Changed 12 years ago by braeker

Resolution: fixed
Status: newclosed

This is already fixed, thanks anyway!

comment:4 Changed 12 years ago by (none)

Milestone: 1.2.4

Milestone 1.2.4 deleted

comment:5 Changed 11 years ago by paul

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