Search and Top Navigation
#10663 new bug ()
Opened October 17, 2014 03:23PM UTC
Last modified October 18, 2014 03:55PM UTC
Draggable: Scroll problem with absolute positioning
Reported by: | kuz | Owned by: | kuz |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.draggable | Version: | 1.11.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
http://jsfiddle.net/kuz30/g65rcea0/
When dragging .draggable over .view expecting .window to be scrolled automatically.
If .draggable will have position: relative then it works as expected.
Attachments (0)
Change History (2)
Changed October 18, 2014 01:06PM UTC by comment:1
owner: | → kuz |
---|---|
status: | new → pending |
summary: | Scroll problem with absolute positioning → Draggable: Scroll problem with absolute positioning |
Changed October 18, 2014 03:55PM UTC by comment:2
status: | pending → new |
---|
Replying to [comment:1 tj.vantoll]:
Yeah I was able to get this working by removingpositionfrom the draggable andoverflowfrom the view: http://jsfiddle.net/7oxy0Lf3/. I'm not sure it's possible to makeposition: absolutework when it's in aoverflow: hiddencontainer. Is there any reason you specifically needposition: absolutehere?
Draggable is used in Gantt Diagram, where
position: absoluteis the only way of positioning
.draggablein a
.view(both vertically and horizontally). Element
.viewis used with draggable option
containment, but it doesn't affect current behaviour. Partial solution is using
.ui-draggable-draggingbut with side effects when
gridoption is defined.
Yeah I was able to get this working by removing
from the draggable and from the view: http://jsfiddle.net/7oxy0Lf3/. I'm not sure it's possible to make work when it's in a container. Is there any reason you specifically need here?