Mindmap direction change doesn't refresh the transformer outline #30
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_whiteboard#30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Flipping a mindmap between Vertical (top-down) and Horizontal (left-right) re-lays-out the nodes but leaves the selection transformer's outline and anchors at the previous orientation's bounding box. The user has to click away and re-select to get the outline to hug the new layout.
Affected entry points:
mindmap.jsflipDirection(group)— called by the in-widget direction toggle icon and by the L keyboard shortcut. CallsrenderMindmap+onUpdatebut nottransformer.forceUpdate.properties.jsprop-mm-directionchange handler — callsWhiteboardMindmap.redraw(currentNode)but notonUpdate(so the change is not persisted either) and nottransformer.forceUpdate.Fix: after re-rendering the mindmap on direction change, call
transformer.forceUpdate()if the group is currently selected, and (for the properties-panel path) also callWhiteboardSync.onUpdateso the new orientation survives reload.Pull request opened: #31