Page 1 of 1

Organization chart redraw on toggle

Posted: 19 Sep 2019, 21:13
by ironboulet

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 :

/ \
/ E
\ F
\ /

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