Hi,
When i’m using Diagram.InfiniteScroll, the ZoomToFit isn’t working well.
is there any workaround that i can use?
thanks.
Hi,
When i’m using Diagram.InfiniteScroll, the ZoomToFit isn’t working well.
is there any workaround that i can use?
thanks.
Internally, since the position is not bounded, when the scale changes we do not try to re-position the Diagram. We consider this a mistake in the case of infinite scroll so it will be fixed in the next release.
As a workaround, you could use:
myDiagram.commandHandler.zoomToFit();
myDiagram.alignDocument(go.Spot.Center, go.Spot.Center);
Thanks!!