Search and Top Navigation
#2171 closed enhancement (fixed)
Opened January 15, 2008 10:33PM UTC
Closed June 08, 2008 07:00AM UTC
Last modified February 26, 2009 12:12PM UTC
allow containing draggable elements within the window
Reported by: | scottgonzalez | Owned by: | paul |
---|---|---|---|
Priority: | minor | Milestone: | 1.5 |
Component: | ui.draggable | Version: | 1.5b4 |
Keywords: | draggable containment window | Cc: | |
Blocked by: | Blocking: |
Description
Add support for containing draggable elements within the window.
$('#drag').draggable({ containment: window });
I've added a patch, but the behavior is a little strange in Opera because if you move your mouse out of the window while dragging, the page will scroll. The containment behaves as expected in other tested browsers (IE 6, Firefox 2, Safari 3 for Windows).
Attachments (0)
Change History (6)
Changed February 01, 2008 09:08PM UTC by comment:1
Changed February 01, 2008 09:13PM UTC by comment:2
In IE, the containment is off by the size of the scrollbar for elements that have fixed or absolute positioning.
Changed May 24, 2008 03:39AM UTC by comment:3
milestone: | 1.2.3 |
---|
Milestone 1.2.3 deleted
Changed May 24, 2008 07:25PM UTC by comment:4
component: | ui.core → ui.draggable |
---|---|
version: | 1.2.2 → 1.5b4 |
Changed June 08, 2008 07:00AM UTC by comment:5
resolution: | → fixed |
---|---|
status: | new → closed |
Changed February 26, 2009 12:12PM UTC by comment:6
milestone: | → 1.5 |
---|
I just added a new patch which includes fixed position support (requires patch from #2161).