Welcome Guest Search | Active Topics | Sign In | Register

Setting ZoomFactor on WebView has no effect Options
Peavy
Posted: Monday, July 13, 2015 12:44:04 PM
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.
eo_support
Posted: Tuesday, July 14, 2015 12:45:45 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.