#11951 closed defect (fixed)
dojo.dnd.autoScrollNodes ignoring overflow-y: scroll
Reported by: | JMace | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | 1.7 |
Component: | DnD | Version: | 1.5 |
Keywords: | dojo dnd autoscrollnodes overflow getcomputedstyle overflow-y | Cc: | |
Blocked By: | Blocking: |
Description
Apologies if this has been raised elsewhere.
I have a dojo dnd Source inside a scrolling div. When I drag a dnd item and attempt to have the div scroll automatically by dragging to the top or bottom of the scrollable div, it doesn't do anything. The overflow-y property is set to scroll. When I change the property to auto, it functions correctly.
I am using 1.3 but have tested on 1.5 and it appears not to be working there either.
I've knocked up some html to demonstrate it. By changing the overflow-y property between scroll and auto, you can see the problem.
I checked the source and it appears that the problem is in dojo.dnd.autoscroll.js on line 64. There is a call
var s = dojo.getComputedStyle(n);
then on the following line, a check for s.overflow. s.overflow should be scroll, but it's null, and so the div is being ignored.
Attachments (1)
Change History (7)
Changed 12 years ago by
comment:1 Changed 12 years ago by
Component: | General → DnD |
---|---|
Owner: | changed from anonymous to Eugene Lazutkin |
comment:2 Changed 12 years ago by
Milestone: | tbd → 1.6 |
---|---|
Status: | new → assigned |
comment:3 Changed 11 years ago by
Milestone: | 1.6 → 1.7 |
---|
comment:4 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:5 Changed 10 years ago by
There is an error in IE 9 when item dragged the scrollTop is set to zero.
comment:6 Changed 10 years ago by
wa1one - comments in closed tickets are generally ignored. If you want someone to look at the problem you'll need to open a new ticket with a test case and more specific instructions to reproduce the error.
HTML to reproduce error