Opened 8 years ago
Last modified 8 years ago
#10663 new bug
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.
Change History (2)
comment:1 follow-up: 2 Changed 8 years ago by
Owner: | set to kuz |
---|---|
Status: | new → pending |
Summary: | Scroll problem with absolute positioning → Draggable: Scroll problem with absolute positioning |
comment:2 Changed 8 years ago by
Status: | pending → new |
---|
Replying to tj.vantoll:
Yeah I was able to get this working by removing
position
from the draggable andoverflow
from the view: http://jsfiddle.net/7oxy0Lf3/. I'm not sure it's possible to makeposition: absolute
work when it's in aoverflow: hidden
container. Is there any reason you specifically needposition: absolute
here?
Draggable is used in Gantt Diagram, where position: absolute
is the only way of positioning .draggable
in a .view
(both vertically and horizontally). Element .view
is used with draggable option containment
, but it doesn't affect current behaviour. Partial solution is using .ui-draggable-dragging
but with side effects when grid
option is defined.
Yeah I was able to get this working by removing
position
from the draggable andoverflow
from the view: http://jsfiddle.net/7oxy0Lf3/. I'm not sure it's possible to makeposition: absolute
work when it's in aoverflow: hidden
container. Is there any reason you specifically needposition: absolute
here?