-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic tree layout child nodes in wrong order #1650
Comments
Please add a screenshot or a test case |
This comment was marked as duplicate.
This comment was marked as duplicate.
请通过此链接查看用例 Supplement, I just forgot to set the editability of this file. Now it has been corrected and the test can be edited. |
After a long period of debugging, I finally found the cause of the problem. The ordering rules of child nodes in automatic tree layout are based on the creation time of the child node connecting lines. If I modify the properties of a sub-node connection line (for example: constraint direction, front and back position in graphics options), the creation time (sequence) of the connection line (sub-node) will be disrupted. If you reapply automatic tree layout at this time, the order of the child nodes will change to the order after changing the connection line properties. I think this layout rule method is unreasonable, the user experience is very bad, and there are no relevant instructions in the user manual document. The sorting of child nodes in automatic layout is best sorted according to the xy coordinates of the child nodes. The alternative I've found so far is to delete all related connecting lines and create new connecting lines for each related child node in the new order. I'm a beginner in drawio and don't know if there is a better solution. If anyone has a better solution, I would be very grateful. |
Preflight Checklist
You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.
Describe the bug
Automatic tree layout child nodes in wrong order.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When I set up automatic tree layout, the first-level child nodes behind the root node are not arranged in the order I placed them. How do I set this up?
Screenshots
draw.io version (In the Help->About menu of the draw.io editor):
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: