fredsa / gwt-dnd

Library providing easy to use mouse or touch based drag-and-drop capabilities to GWT
42 stars 41 forks source link

Drag disjoint multi proxy items using AbstractInsertPanelDropController produces incorrect ordering #124

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Dragging multiple disjoint proxy items using a 
AbstractInsertPanelDropController produces incorrect ordering. I produced this 
using an app I'm building but can use the demo app as below.

What steps will reproduce the problem?
1. Go to 
http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/DragDropDemo.ht
ml#FlowPanelExample
2. Turn on multi select via ctrl/meta click
3. Turn on use drag proxies
4. Select item #1, #2 and #4 using multi select
5. Drag to after item #14
6. Drop items

What is the expected output? What do you see instead?
- Expecting items #13, #14, #1, #2, #4, #15, #16 in that order
- Get items #13, #14, #1, #2, #15, #4, #16 in that order

It seems to keep the gap between the #2 and #4 items. However, in almost all 
cases I can think of this is not what a user would be expecting. Perhaps some 
applications want this behaviour although I can't think of a good example. So 
if fixing this, I suppose it should maybe be configurable.

Original issue reported on code.google.com by cknow...@gmail.com on 24 Sep 2010 at 4:35