jgraph / jgraph/drawio

Automatic tree layout child nodes in wrong order

Open
#5,454 10 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

needs-info possible-duplicate question
Dominant language
JavaScript
Stars
8.2k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Preflight Checklist
  • [x ] I agree to follow the Code of Conduct that this project adheres to.
  • [x ] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

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:

  1. Go to 'layout'
  2. Click on 'tree layout'
  3. Automatic tree layout child nodes in wrong orderr

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):

  • draw.io version v23.1.5

Desktop (please complete the following information):

  • OS: Windows

Additional context

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in draw.io v23.1.5 by opening Layout and selecting Tree Layout on a diagram with several first-level child nodes. Compare the resulting child order with the order in which the nodes were placed. Done means the automatic tree layout either preserves that order or clearly documents the expected ordering behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.