google-code-export / gwt-dnd

Automatically exported from code.google.com/p/gwt-dnd
0 stars 0 forks source link

Overlapping drop target not handled #169

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create two drop targets with z-index so that they overlap
2. drop a draggable over

What is the expected output? What do you see instead?
The draggable should drop into the topmost one.
It drop instead on the bottom one.

This is becouse the library chose "the deepest DOM descendant drop target".

Here's my patch.
It simply order the drop targets considering the z-index.
(disabled by default)

Original issue reported on code.google.com by lelmarir on 29 Apr 2013 at 12:30

Attachments:

GoogleCodeExporter commented 9 years ago
sorry, I just realized that i've messed up with the patch file. Here's the 
correct one.

Original comment by lelmarir on 2 May 2013 at 9:15

Attachments: