Zooming to Fit

I am drawing a diagram which is smaller than the window/viewport it is being drawn into. I am calling zoomToFit() but it seems to draw only according to the dimensions of the actual parts. If I reduce the window to smaller than the diagram it works as expected by reducing the diagram down to a size that it still displays fully.

How do I go about trying to increase the larger size?

There is an enforced maximum scale of 1 imposed by the ZoomToFit method. In the past users have complained that they did not want to see anything too big, with a small solitary object filling the screen.

But you could implement it yourself without that limitation.

I don’t know why I didn’t think of this earlier: