Bug Tracker

Opened 12 years ago

Closed 12 years ago

#2406 closed feature (fixed)

Proportional resizing using the Resizable

Reported by: Anotherhero Owned by: braeker
Priority: minor Milestone: 1.2.4
Component: ui 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 (4)

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!

Note: See TracTickets for help on using tickets.