Page MenuHomePhabricator

Drag and drop behaves differently based on whether a node is added before or after its initial position
Closed, DuplicatePublic

Description

Currently if you drag and drop a node it may either be moved beneath or above the node you drag it on, based on whether you that node it above or below its initial position.

Miklos has kindly provided a patch at [1]
[1] https://github.com/NifTK/MITK/commit/cfeed4eb98462e00fe0e8fdae3ec7988ae334beb

Event Timeline

Current release is finished. Reseting target milestone...

Updating target milestone to upcoming release

If you are working on integrating this, note that there is a bug in the patch above that makes the application crash when you drag a node to the very bottom.

The fix is here:

https://github.com/NifTK/MITK/commit/72fa5727df400cdd8f200e31635aa49f926fe67b

Note also that our version of the function also allows dragging a node over another (not just in between) to make it a derived node. As I remember, the patch what Caspar linked in does not do that but the latest version of the file does.