Zoom To Fit crops content when virtual space is disabled

Posted 2 years ago by Avatar Markus Springweiler

Can be easily seen in the sample application. On 1920x1200 maximized window the red bordered blue square on the Virtual Space QuickStart gets zoomed to 896% with virtual space enabled (and no pixel is missing) and gets scaled to 913% with virtual space disabled, activating the vertical scrollbar.

On most of the other quickstarts with the actipro logo the horizontal scrollbar gets active after ""Zoom To Fit"".

Bug exists since 2015.1 or even longer.

Comments (2)

Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Markus,

Thanks for reporting this.  We've fixed it for the next maintenance release. 

You could probably work around it now by setting the ZoomContentControl.HorizontalScrollBarVisibility and VerticalScrollBarVisibility properties to Auto.

Actipro Software Support
Posted 2 years ago by Markus Springweiler

Indeed -- but this introduces an ugly offset-hop when zooming past the scrollbar threshold.


To be honest I would like to use virtual space, but then I'm fighting against a somehow persistent center point which gets changed by any pan or zoom to point operation and then keeps nearly forever, which especially looks odd when switching content. I know this isn't very helpful -- I tried to mimic the ZoomContentControl-Intro but something must be different.

There is also a general problem with "Zoom to fit" which I cannot narrow down to a reproducible state, I only notice it from time to time: My app has a mode where it calls ZoomToFit() after each Content update, and sometimes the animation does real bad hops (animating in wrong direction first) or even sometimes stops when the content is totally misaligned. The problems stop occuring when setting zoom animation duration to zero.

[Modified 2 years ago]

Information The latest build of this product (2017.2 build 0665) was released 17 days ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.