Closed Charlie28000 closed 2 years ago
Hi @Charlie28000, did you do this test on the latest released version of the add-on (version 4.2.1)? I did a test with your example and I cannot replicate what you report. The indicators for the nodes are visible and I can collapse all that is possible to collapse. I attach a gif with my test:
Hi @Charlie28000. Can you tell us if this still an issue for you? Thanks.
Expectation: All nodes, except one "last" node, can be / are collapsed - like seen in the JQuery library https://dabeng.github.io/OrgChart/toggle-sibs-resp.html or when using https://addonsv14.flowingcode.com/orgchart "Bottom to Top"
Observation: One node in every "layer" remains uncollapsable (when not using Bottom to Top, but setChartExpandCollapse), thus collapsing nodes vertically is not possible. Additionally this prevents uncollapsing nodes when setCollapsedNodes is used. When a node with child nodes is collapsed horizontally, its child nodes disappear and can't be uncollapsed again. Furthermore, the collapse / uncollapse arrows don't show up using below setup, which makes it hard for the user to determine which nodes are collapsable / collapsed.
Code: