开发者

dojo.dnd.move node rendering issue

Do开发者_如何学Gojo has a basic issue, amongst other things... with its dojo.dnd.move class. The issue which you can see here:

http://archive.dojotoolkit.org/nightly/dojotoolkit/dojo/tests/dnd/test_parent_constraints.html

Is that when you click on a node, and start dragging, the node itself jumps. It actually moves its position. This is extremely problematic and I was wondering if anyone has seen this happen before.

I am creating an application that requires the moving of nodes but it needs to be precise and thus can't have the initial jump.

Any help would be greatly appreciated.


This is caused by the following highlighted code in Mover.js:

https://github.com/dojo/dojo/blob/master/dnd/Mover.js#L91-92

The odd thing is, based on the comments, it seems like this code is causing the very problem it aims to prevent.

That said, if your body has padding: 0 applied to its style, this code shouldn't affect you. (You can test it on that test page by running document.body.style.padding = "0" in the console before dragging.)

You might want to enter a ticket on the Dojo bug tracker at http://bugs.dojotoolkit.org (or maybe search and see if one has already been entered for it).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜