Skip to main content

Search and Top Navigation

#7016 closed bug (fixed)

Opened February 18, 2011 11:40AM UTC

Closed August 17, 2014 06:41PM UTC

Draggable: draggable can be pulled out of containment in Chrome and IE8

Reported by: Trainmaster Owned by: mikesherov
Priority: minor Milestone: 1.11.2
Component: ui.draggable Version: 1.8.9
Keywords: Cc:
Blocked by: Blocking:
Description

First of all the Example: http://jsfiddle.net/QFVxC/12/

Follow these steps:

1. Move the object to the bottom of the container

2. Now, again select the object and try to move it out of the container downwards

3. Repeat the previous step a few times. You will see, that you can slowly pull the object out of the container

FF 3.6.13 + Opera 11.01 works fine

Attachments (0)
Change History (15)

Changed February 18, 2011 12:53PM UTC by raziel057 comment:1

I also noticed this problem in Chrome 9 and IE8.

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

milestone: 1.9.02.0.0

Changed October 27, 2012 07:42PM UTC by mikesherov comment:3

status: newopen
summary: Draggable object pops out from container (Chrome + IE 8)Draggable: draggable can be pulled out of containment in Chrome and IE8

confirmed on latest: http://jsfiddle.net/cLVYr/1/ Also noticed that if you add padding to the container: http://jsfiddle.net/cLVYr/ , the problem goes away, so it must be a boundary condition issue.

Changed October 28, 2012 08:34PM UTC by mikesherov comment:4

#8373 is a duplicate of this ticket.

Changed April 09, 2013 11:58AM UTC by scottgonzalez comment:5

#9218 is a duplicate of this ticket.

Changed April 28, 2013 04:46PM UTC by BardMorgan comment:6

I tried adding padding to a div I was using for containment and the problem persisted. I added a border and the problem resolved. I edited the second fiddle above (http://jsfiddle.net/cLVYr/) and deleted the border and you can once again move the contained object slowly outside the container. The new fiddle is at http://jsfiddle.net/BardMorgan/PK5dY/.

Changed April 28, 2013 04:49PM UTC by BardMorgan comment:7

Ok.. one more revision. If you use both a border and padding it resolves. If you use only one, the problem persists.

Changed July 16, 2013 02:42PM UTC by tj.vantoll comment:8

#4489 is a duplicate of this ticket.

Changed July 16, 2013 02:43PM UTC by tj.vantoll comment:9

Reduced the test case against master a bit: http://jsfiddle.net/tj_vantoll/Q4bkR/

Changed September 06, 2013 12:59PM UTC by Aradesh comment:10

There is one more bug related to this.

If draggable element has child div with position: absolute, and this element is outside of draggable container - containment is not work on bottom and right borders.

http://jsfiddle.net/9Wu5T/

Changed September 10, 2013 01:00AM UTC by tj.vantoll comment:11

Replying to [comment:11 Aradesh]:

There is one more bug related to this. If draggable element has child div with position: absolute, and this element is outside of draggable container - containment is not work on bottom and right borders. http://jsfiddle.net/9Wu5T/

I'm not seeing any issues with that test case. Are you only seeing the behavior in certain browsers?

Changed October 16, 2013 09:48AM UTC by vesoljc comment:12

Replying to [comment:8 BardMorgan]:

Ok.. one more revision. If you use both a border and padding it resolves. If you use only one, the problem persists.

And you have to use 3px (or more) padding.

At least on Chrome 30.0.1599.69...

Changed November 30, 2013 08:30PM UTC by tj.vantoll comment:13

#9685 is a duplicate of this ticket.

Changed August 17, 2014 01:45AM UTC by mikesherov comment:14

milestone: 2.0.01.11.2
owner: → mikesherov
status: openassigned

I know what's doing this. PR coming soon.

Changed August 17, 2014 06:41PM UTC by Mike Sherov comment:15

resolution: → fixed
status: assignedclosed

Draggable: Ensure overflow:visible containments are correctly measured

Fixes #7016

Changeset: 48ea2aadad11938cc5ddbd9a340c4ca1c997550d