I have a group which is a tree structure. Since I am fetching records from server during load, it displays a long tree without scrollbar. My requirement is that I want to restrict the height of my panel (containing all my tree nodes) and provide scroll bar if in case it exceeds the height.
I tried allowVerticalScroll: true, but this property is applicable only for diagram and i just want the scrollbar only for that panel.
Also, when I try to create a link between two nodes between two such trees, and since it’s the destination node is currently not visible, i want an auto scroll kind of functionality for that panel. Like if I drag the link, the scroll bar goes up and the nodes at the bottom become visible so that link can now be formed.
What you describe is not possible in GoJS at this time because Groups cannot clip their member subgraphs.
It might be possible to simulate some of this by individually controlling the visibility of member nodes assuming the nodes are ordered linearly and that is OK to show or hide whole nodes rather than clipping fractional nodes.
Just for a while forget about the tree structure. Suppose I have a panel with 100 nodes inserted linearly, But since my height of the panel is set to a definite value, I want a scroll bar to appear for that panel so that the bottom nodes can be visible by scrolling down.