On some of our diagrams we see the vertical and horizontal scrollbars
after the call to RescaleToFit. Sometimes the slider covers 100%
of the space and sometimes most of the space. In the latter, if
we then click on the empty portion of the scrollbar, both the vertical
and horizontal would disappear. This is a desired result.
Is there a way to automate it so that after the RescaleToFit that there
would be no scrollbars.
We saw reference to RescaleToFit - “Calling this method will not
necessarily cause the scroll bars to disappear, because the scroll bars
normally show the extent of the document, which is normally greater
than the extent of the actual objects in the document.” but don’t
know enough to code around it.