Skip to main content

Search and Top Navigation

#3607 closed bug (fixed)

Opened November 19, 2008 03:25PM UTC

Closed January 08, 2009 12:37PM UTC

Draggable div not constrained within containing div when window scrollbars moved

Reported by: Wobble Owned by:
Priority: major Milestone: 1.7
Component: ui.draggable Version: 1.6rc2
Keywords: Cc:
Blocked by: Blocking:
Description

I've looked at other open bugs; #3568 looked similar, but I have checked, and this problem still seems to persist with the SVN version.

I have a container div. I have a square div within that, which I set as draggable, and add the "parent" constraint. This all works perfectly, but when the browser window is small enough to induce scrollbars and the scrollbar is not at its original position, the square can be dragged outside of the container - seemingly by the amount by which I've scrolled from the default scrollbar position.

There's a little video of the problem here:

http://www.bixbite.co.uk/jquery/drag_problem/drag_problem.html

A live example of the code is here (I've attached the HTML to the ticket as well):

http://www.bixbite.co.uk/jquery/drag_problem/test-svn.html

Attachments (1)
  • test-svn.html (0.7 KB) - added by Wobble November 19, 2008 03:25PM UTC.

    Test Case

Change History (2)

Changed January 02, 2009 04:40AM UTC by scottgonzalez comment:1

milestone: TBD1.6
priority: minormajor

Changed January 08, 2009 12:37PM UTC by paul comment:2

resolution: → fixed
status: newclosed

Fixed in r1554.