Organization chart redraw on toggle

UI Components for React
Post Reply
ironboulet
Posts: 1
Joined: 30 Aug 2019, 14:19

19 Sep 2019, 21:13

Hello,

i'm working with the organizationChart component, and i'd like the chart to be redraw when i expand or un-expand a node.
if you have a chart with 3 levels of nested chidrens :


D
/
B
/ \
/ E
A
\ F
\ /
C
\
G

When all nodes are expanded, the position of B and C node is calculate by the grid regarding D, E, F, G nodes. (the distance between B and C could be big if more nodes)
but when i collapse B and C nodes, in order to hide D, E, F, G the distance between B and C is the same, the grid do not recalculate this distance, and it could be not user friendly : the user could have to horizontaly scroll to see the node C even if there is only A, B, C to display.

How can i handle this ?

Thank you

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests