Add preserveSpace to OrganizationChart for PrimeReact #3039
Unanswered
kov7si
asked this question in
PrimeReact
Replies: 1 comment
-
You can do this yourself. Just add this css rule to your index.css .p-organizationchart-nodes[style="visibility: hidden;"] {
display: none;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current behavior
Org Chart child nodes become hidden on collapse but occupy the same space making the org chart unnecessarily huge when all/some nodes are collapsed.
Expected behavior
The child nodes support
display:none
instead ofvisibility:hidden
Additional Information
This behaviour was already mentioned and solved in PrimeNG, it would be nice to have the same functionality in PrimeReact
Link to discussion for PrimeNg
Link to commit with fix
Beta Was this translation helpful? Give feedback.
All reactions