I have attached a sample which highlights an issue we have seen when the diagram's width changes.
The diagram's width is initially set to 50% of the window width. When this is increased to 100% dynamically (e.g. by pressing a button which hides a sidebar), the diagram gets a bit confused. You can see this in the screen capture I took and attached. The diagram doesn't fit to page properly and we can't pan to the right.
Is there something we need to do to let the diagram know that its size has changed?
We are trying to allow the diagram to fill all available space on our page, but this space changes size depending on what other elements are visible. It would be great if the diagram adjusted correctly.