Skip to main content

Search and Top Navigation

#10140 closed bug (fixed)

Opened July 08, 2014 01:20AM UTC

Closed August 04, 2014 01:32PM UTC

Last modified August 04, 2014 11:20PM UTC

Resizable: Width calculation is wrong when containment element is "position: relative"

Reported by: kamatamadai Owned by: mikesherov
Priority: minor Milestone: 1.11.1
Component: ui.resizable Version: 1.11.0
Keywords: regression Cc:
Blocked by: Blocking:
Description

Width is protrude from containment element.

See this example: http://jsfiddle.net/kamatamadai/5Tucc/

The previous version(v1.10.4) is working properly.

I think that it is this change cause https://github.com/jquery/jquery-ui/commit/c03cb8079c6984fb9286a64d980d367d86b9cd8b .

It should be added the following test case.

$( "#child" ).resizable({

containment: "#parent",

handles: "all"

});

Attachments (0)
Change History (8)

Changed July 08, 2014 02:10AM UTC by scottgonzalez comment:1

status: newopen

fiddle with proper inclusion of jQuery UI: http://jsfiddle.net/5Tucc/5/

Changed July 08, 2014 12:31PM UTC by tj.vantoll comment:2

keywords: → regression

Reduced this some http://jsfiddle.net/tj_vantoll/5Tucc/6/.

I also verified this is a regression because the test case works with 1.10.4.

Changed July 16, 2014 08:13PM UTC by scottgonzalez comment:3

Changed August 04, 2014 12:21PM UTC by mikesherov comment:4

owner: → mikesherov
status: openassigned

Changed August 04, 2014 01:32PM UTC by Mike Sherov comment:5

resolution: → fixed
status: assignedclosed

Resizable: Fix containment calculation with relative parent

Remove an incorrect fix introduced in 47cd5b6f that causes

width calculations to be incorrect once the correct fix

was introduced in c03cb807

Fixes #10140

Changeset: 2779212a0e6e34fdea3f0d442e4d92218ac943fa

Changed August 04, 2014 01:44PM UTC by scottgonzalez comment:6

milestone: none1.11.1

Changed August 04, 2014 02:11PM UTC by Jyoti Deka comment:7

Resizable: Fix containment width with relative parent.

Refs #10140

Closes gh-1303

Changeset: 750a8fd0c267aaba784f6dc76924619dbb459762

Changed August 04, 2014 11:20PM UTC by tj.vantoll comment:8

#10438 is a duplicate of this ticket.