Opened 8 years ago

Last modified 7 years ago

#7002 open bug

Resizable: Problems using alsoResize with min/max height/width

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

Description

When I try to synchronize the resize of 2 blocks in only one dimension (for example, width) and forbid to synchronize the resize in other dimensions (for example, height), I try to use the following jQuery UI code.

$("#userListFooter").resizable({handles: 'n, w, nw',alsoResize: "#userList"});
$("#userList" ).resizable({handles:'w', minHeight:25,maxHeight:25,minWidth:240 });

When I resize #userList, I really can't change the height, according to constraint. Only width. It is logical.

But when I resize width and height of #userListFooter, the constraint of #userList didn't work. If I enlarge the height of #userListFooter, the height of #userList will be enlarged too, it will be more than 25px. So, the constraint of #userList is broken.

Change History (2)

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

Milestone: 1.9.02.0.0

comment:2 Changed 7 years ago by tj.vantoll

Status: newopen
Summary: Resizable. alsoResize and maximum/minimum size are conflictedResizable: Problems using alsoResize with min/max height/width

Verified this is an issue with 1.9.1. See http://jsfiddle.net/tj_vantoll/Y2sPJ/ for the minified test case and an explanation of the issue.

Note: See TracTickets for help on using tickets.