Skip to main content

Search and Top Navigation

#7605 closed bug (fixed)

Opened August 04, 2011 05:43PM UTC

Closed November 13, 2012 02:43AM UTC

Last modified November 13, 2012 02:45AM UTC

Resizable: Plugin sets width and height when only one is changing

Reported by: atrigent Owned by:
Priority: minor Milestone: 1.10.0
Component: ui.resizable Version: 1.8.14
Keywords: haspatch Cc:
Blocked by: Blocking:
Description

We have an element which we want to be resizable vertically and hold only its height consistent. The width should be dynamic and dependent on the container size and other factors.

resizable sets both the height and width, even if only one of those values is actually changing. In our case, this causes the width to be set as a constant number of pixels and breaks our desired dynamic layout. We are currently working around this by clearing the width setting in the resize handler, but this is a hack and shouldn't be necessary.

Attachments (0)
Change History (7)

Changed September 15, 2012 09:10PM UTC by eromba comment:1

Here is a test case:

http://jsbin.com/ebijab

I've submitted a pull request with a fix and unit test here:

https://github.com/jquery/jquery-ui/pull/694

Changed October 11, 2012 02:52PM UTC by scottgonzalez comment:2

milestone: 1.9.02.0.0

Changed October 28, 2012 03:14AM UTC by tj.vantoll comment:3

keywords: → haspatch
status: newopen
summary: Setting width and height when only one is changingResizable: Plugin sets width and height when only one is changing

Changed October 28, 2012 03:14AM UTC by tj.vantoll comment:4

#3634 is a duplicate of this ticket.

Changed October 28, 2012 03:15AM UTC by tj.vantoll comment:5

Another test case from the duplicate ticket - http://jsfiddle.net/tj_vantoll/FCF4N/.

Changed November 13, 2012 02:43AM UTC by Ethan Romba comment:6

resolution: → fixed
status: openclosed

Resizable: Update CSS dimensions selectively. Fixes #7605 - Setting width and height when only one is changing

Resizable: Trigger resize event only when element is resized. Fixes #5545 - Callbacks ignore the grid.

Resizable: Added event tests. Fixes #5817 - resize event reports unconstrained ui.size

Changeset: 3974b55ba5078799df818c78d9273e11d9796ff3

Changed November 13, 2012 02:45AM UTC by mikesherov comment:7

milestone: 2.0.01.10.0