Rank: Advanced Member Groups: Member
Joined: 6/26/2015 Posts: 98
|
If I try to manually set the ZoomFactor of a WebView, it does not have any effect on the appearance of the web page. Here's the code:
Code: C#
this.ActiveBrowser.WebBrowser.ZoomFactor = 1.5;
MessageBox.Show(this.ActiveBrowser.WebBrowser.ZoomFactor.ToString());
The MessageBox in the above code shows "1.5" for the ZoomFactor, but the appearance never changes.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Please check whether you are using the latest build. We tested this with the latest build and it seems to work fine. The result of our test are:
1. The appearance always changes to reflect the correct zoom level; 2. You may not get the changed ZoomLevel immediately. For example, it's possible for you to see "1" instead of "1.5" in your message box. This is normal because when you set the zoom level, it only sends the new value to the browser engine and returns immediately. As such there can be a time delay between setting the value and the value has been applied (at which point ZoomFactor will have the new value).
Thanks!
|