Skip to main content

Bug Tracker

Side navigation

#2406 closed feature (fixed)

Opened February 25, 2008 01:04PM UTC

Closed March 03, 2008 04:08AM UTC

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:

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 February 25, 2008 01:05PM UTC.

    the ui.resizable.js with the fix applied

Change History (3)

Changed February 26, 2008 01:01PM UTC by paul comment:1

owner: paulbraeker

Changed February 29, 2008 12:52PM UTC by Anotherhero comment:2

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

should be

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

Changed March 03, 2008 04:08AM UTC by braeker comment:3

resolution: → fixed
status: newclosed

This is already fixed, thanks anyway!