drawio icon indicating copy to clipboard operation
drawio copied to clipboard

Allow Automatic Layouts (e.g., Horizontal Tree) to Respect Manually Adjusted Sibling Node Order

Open sinoory opened this issue 1 year ago • 0 comments

Currently, when using automatic layout functions like Arrange -> Layout -> Horizontal Tree in mindmap, the resulting order of sibling nodes (e.g., their vertical arrangement in a horizontal tree) appears to be determined solely by their creation order or internal structure, rather than their manually adjusted visual positions.

Steps to Reproduce:

Create a mindmap from advanced shapes Create a parent node (e.g., labeled 'a'). Create three child nodes connected from 'a' (e.g., labeled '1', '2', '3'). Select the nodes/connectors and apply Arrange -> Layout -> Horizontal Tree. The nodes will typically be arranged vertically in the order 1, 2, 3 (assuming that was the creation order). Manually drag the nodes to change their visual vertical order. For example, move node '3' to be visually highest, '2' in the middle, and '1' lowest. (See attached screenshot showing the manually arranged state where '3' is top, '1' is bottom). Select the nodes/connectors again and re-apply the Arrange -> Layout -> Horizontal Tree function. Actual Behavior:

The automatic layout function resets the vertical order of the sibling nodes back to the original sequence (1, 2, 3), ignoring the manual visual rearrangement performed in step 4.

Expected Behavior:

The automatic layout function (like Horizontal Tree) should optionally recognize or prioritize the manually adjusted visual order of sibling nodes. When the layout is applied after manual rearrangement (e.g., 3, 2, 1 visually from top to bottom), the resulting layout should maintain that relative sibling sequence (3 should still be highest, 1 lowest, distributed according to the layout algorithm).

Most of the other mindmap software support to manually change the node order by user . If Drawio can also do this, you will be more great!

Thansks!

sinoory avatar Apr 14 '25 02:04 sinoory