OrganizationChart: Expanding the tree data with additional child nodes results in a visual glitch #13913
Labels
Resolution: Stale
Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
Fewer children
More children
Environment
Tested on a local computer and Stackblitz with the same result.
Reproducer
https://stackblitz.com/edit/github-tsea2s?file=src%2Fapp%2Fapp.component.ts
Angular version
16.2.9
PrimeNG version
16.5.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
Unknown
Browser(s)
No response
Steps to reproduce the behavior
In the provided Stackblitz link, you can in the app.component.ts file remove the elements enclosed by the comments marked as "Begin" and "End". Upon doing so, you can observe that the organizational chart displays an unusual adjustment in the lines leading to the top node. Upon further investigation, it becomes evident that adding additional items (children) progressively displaces the line connecting to the top node from its intended position.
Expected behavior
The line going to the top node should be aligned correctly where the box of the node is located.
The text was updated successfully, but these errors were encountered: