maqetta/maqetta — Issue #1173: ChooseParent with SelectTool doesn't actually work
Author: JonFerraiolo
Created: 2011-11-07 01:04:58+00:00
State: open
Labels: Priority Med, Visual Editor

The ChooseParent preference does indeed show candidate parents while dragging a widget with SelectTool, but if you choose a non-default parent, the reparenting doesn't actually happen.

Here is some research on the subject:

* Upon ending the drag operation, the onMouseUp() method in Focus.js calls the onExtentChange() method in SelectTool.js
* The onExtentChange() method calls MoveCommand but has no logic to invoke the ReparentCommand.
* To get this all to work, somehow or other onExtentChange needs to retrieve the current candidate parent that was in place when the onMouseUp() happened