How can I prevent “jerking” of the diagram when expanding/collapsing elements? How can I make it so that the position of the element on which the button is pressed does not change?
In the screenshots, the child elements are expanded and collapsed sequentially.
I tried to save the scroll position and coordinates of the parent element, and after collapsing/expanding set them as they were before collapsing/expanding.
diagram.getScrollState()
but it didn’t help. the diagram still changes the coordinates