Closed zhizhangchen closed 12 years ago
The weird thing now is that when you drag a new widget in from the palette, the old one remains highlighted at the same time as the new one, and then the old one gets unhighlighted.
The best solution for this could be a little tricky. I expect the outline view sees a "node insertion" event followed by a "node selected" event. Perhaps we should included the updated selection as part of the node insertion event?
Or we could just check for the current selection as we handle the node insertion event in the outline view, it's probably already been set, we just haven't seen the selectionChanged event yet.
Yes, it's a little tricky. I updated the PR to set selected node while creating tree node to make sure only one node is selected and it also makes it unnecessary to scroll when moving node.
Merged.
...ection