marcojakob/dart-dnd — pull request #4 by RobertMcDermot (2014-08-09 00:47:06+00:00)
Title: added example of a bug when the parent element has an offset and impleme...

...nted solution

There's a problem when the avatar's parent element is `` or `` and has a `` or `` etc that is non-zero. This causes the avatar to be offset from the mouse cursor by that same amount. I have put an example of this in the examples directory under parentOffsetBug.

At least for my own purposes, it was enough to append the avatar to the `` instead of to the immediate parent. This solves the problem for my uses but I'm not sure if it's the best solution for all cases. It seemed reasonable to me that because the avatar was meant to be a temporary object, it doesn't matter too much where in the document it was attached.