Skip to content

Fix OrganizationChart connector layout for large child counts#8454

Merged
melloware merged 5 commits intoprimefaces:masterfrom
Coderxrohan:fix/orgchart-large-children
Jan 1, 2026
Merged

Fix OrganizationChart connector layout for large child counts#8454
melloware merged 5 commits intoprimefaces:masterfrom
Coderxrohan:fix/orgchart-large-children

Conversation

@Coderxrohan
Copy link
Copy Markdown
Contributor

Fixes an issue where OrganizationChart connector lines break when a node has a
large number of children.

The issue occurs because all children are rendered in a single row, causing the
CSS-based connector layout to break at large widths.

This change chunks children into multiple rows, keeping row widths manageable
while preserving the existing connector rendering logic.

Fixes #7488 (OrganizationChart: if it has a large children number the lines are not connected properly)

@Coderxrohan
Copy link
Copy Markdown
Contributor Author

  1. Identified that all child nodes were being rendered in a single table row, causing the row to become very wide when a node had many children.

  2. This excessive width caused the CSS-based connector lines to misalign due to browser layout and rounding limitations.

  3. Updated the internal rendering logic to split large sibling groups into multiple rows instead of one wide row.

  4. Rendered connector lines per row, keeping colSpan values bounded and preserving the existing connector behavior.

  5. Verified that existing features such as expand/collapse, selection, and styling continue to work as before

@melloware melloware merged commit 850960d into primefaces:master Jan 1, 2026
2 checks passed
@Coderxrohan Coderxrohan deleted the fix/orgchart-large-children branch February 4, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OrganizationChart: if it has a large children number the lines are not connected properly

2 participants