Opened 8 years ago

Last modified 5 years ago

#6783 open bug

Resizable: aspect ratio is only calculated in one direction

Reported by: em Owned by:
Priority: minor Milestone: 2.0.0
Component: ui.resizable Version: 1.8.7
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by Scott González)

See the second comment for the description.

Change History (7)

comment:1 Changed 8 years ago by Scott González

Resolution: invalid
Status: newclosed

Please provide a description of the actual problem instead of just dumping a bunch of code into a ticket. Also, please don't paste code into tickets; use jsFiddle or jsbin.

comment:2 Changed 8 years ago by em

Look at the demo: http://jqueryui.com/demos/resizable/#aspect-ratio

Move your cursor to the left without moving the cursor upwards, and it doesn't resize. It only resizes based on the y axis.

Now open up any graphic editor, 3d modeler, or anything that does resizing ever made, and notice the logic follows the little code snippet at the top of my original post.

comment:3 Changed 8 years ago by Scott González

Description: modified (diff)
Resolution: invalid
Status: closedreopened
Summary: ui.resizable ignored x axis instead of calculating with max differenceResizable: aspect ratio is only calculated in one direction

comment:4 Changed 6 years ago by Scott González

Milestone: 1.9.02.0.0

comment:5 Changed 6 years ago by mikesherov

Status: reopenedopen

comment:6 in reply to:  2 ; Changed 5 years ago by dekajp

Replying to em:

Move your cursor to the left without moving the cursor upwards, and it doesn't resize. It only resizes based on the y axis.

Could not figure out which side Resizable handle i should drag ? E or W ?

comment:7 in reply to:  6 Changed 5 years ago by tj.vantoll

Replying to dekajp:

Replying to em:

Move your cursor to the left without moving the cursor upwards, and it doesn't resize. It only resizes based on the y axis.

Could not figure out which side Resizable handle i should drag ? E or W ?

Grab the SE handle and drag it west.

Note: See TracTickets for help on using tickets.