| Page 1 of 1 | [ 3 posts ] |
|
Hello,
There is an issue with Drag&Drop when applied to table rows. In this case we receive enter and exit events out of order. Here is an example: Let's suppose we have a table with three rows. We are using delegate and we have set drop targets to each tr element. We drag the third row over the second one, then over the first one. In this case we receive the following events: drag:enter drag:enter drag:exit And they should be: drag:enter drag:exit drag:enter What is interesting is that if we set drop targets to some of the elements in the table cells, this works fine. I think this is due to the fact that they have some space between (padding), but the rows don't. I also tried to use different dragMode without success. Is that known issue? Does someone have an idea? |
|
DD can support hovering over more than one element at a time, it sounds like the tr's are overlapping slightly so the targets are overlapping. You can try setting the padding config on the Drop Target's to a -1px or -2px to force them a little smaller.
http://yuilibrary.com/yui/docs/api/clas ... tr_padding |
|
Thanks Dav, -1 did the trick.
|
| Page 1 of 1 | [ 3 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group