primeng icon indicating copy to clipboard operation
primeng copied to clipboard

OrganizationChart: Expanding the tree data with additional child nodes results in a visual glitch

Open pistage opened this issue 3 years ago • 1 comments

Describe the bug

Fewer children Skärmavbild 2023-10-18 kl  12 35 36

More children Skärmavbild 2023-10-18 kl  12 35 21

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.

pistage avatar Oct 18 '23 10:10 pistage

This issue has been automatically marked as stale due to a lack of activity. If this issue is still relevant to you, please leave a comment so we can keep it open. We apologize for not being able to prioritize it sooner. If you have any new information or questions, please share them in your comment!

github-actions[bot] avatar Dec 16 '24 11:12 github-actions[bot]