y1feng200156 / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

Scroll functionality during drag and drop #468

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Put a dynatree with in an internal scrollable panel
2. Enable drag and drop
3. Drag an item outside the current view port
[apparent in example pages as well:  
http://wwwendt.de/tech/dynatree/doc/sample-dnd2.html#]

It seems like auto scroll functionality is broken - maybe an artifact of change 
in jqueryui/draggable? Maybe changes in more recent browsers?
In the example page, whenever the tree is contained within a view with 
scrollbars, you see the scroll bar shrink in size when dragging outside the 
viewport but no actual scroll happens (same behavior in both Chrome and IE10).

What is the expected output? What do you see instead?
Expect to see the tree scrolls so one can drag an item from one branch into 
another (non-visible) one at the time when drag starts.

What version of the dynatree and jQuery are you using?
1.2.4, 1.2.5

On what operating system and browser?
Windows 7, Browsers: IE10, Chrome

What DOCTYPE declaration are you using?

Please provide any additional information below.

Original issue reported on code.google.com by nmard...@gmail.com on 30 Dec 2013 at 5:32

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 30 Dec 2013 at 12:12

GoogleCodeExporter commented 9 years ago
Thanks for accepting this so fast, it would be great if a workaround/patch/fix 
for this could soon be published as the behavior here highly impacts our 
application using dynatree.

Thanks!

Original comment by nmard...@gmail.com on 30 Dec 2013 at 12:58

GoogleCodeExporter commented 9 years ago
does this help?
https://github.com/mar10/fancytree/issues/112

Original comment by moo...@wwwendt.de on 2 Jan 2014 at 9:43

GoogleCodeExporter commented 9 years ago
Indeed!

Adding 'position: relative' explicitly on the container works like a charm.

Thanks!

 Nir

Original comment by nmard...@gmail.com on 3 Jan 2014 at 10:58

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 1 May 2014 at 4:52