Welcome Guest Search | Active Topics | Sign In | Register

ZoomFactor with multiple WebViews Options
M.Kramer
Posted: Monday, January 11, 2016 10:04:09 AM
Rank: Advanced Member
Groups: Member

Joined: 11/3/2015
Posts: 65
Hello,

I've got a problem with the ZoomFactor Function. I use multiple WebViews in a Tabbrowser like program and I want to have a different zoomfaktor in every Webview.
But if I set the Zoomfaktor to one Webview, it is set to all other Webviews, too.

I hope, you can help me with that problem.

Kind regards

Marius Kramer
eo_support
Posted: Tuesday, January 12, 2016 12:37:23 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

Please check if you are running the latest build. We tested this on the latest build and it seems to work fine. Each WebView can have their own ZoomFactor value independently.

Thanks!
M.Kramer
Posted: Wednesday, January 13, 2016 2:23:48 AM
Rank: Advanced Member
Groups: Member

Joined: 11/3/2015
Posts: 65
Hi,

thank you for your response.

Now I tried the last version EO.Total.2015.3.71.0 and it does not work.

Even in your test Tabbed browser all ZoomFactors are changed concurrent.
eo_support
Posted: Wednesday, January 13, 2016 10:23:37 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

Can you let us know the steps to reproduce the problem with our TabbedBrowser sample?

Thanks!
M.Kramer
Posted: Wednesday, January 13, 2016 10:32:36 AM
Rank: Advanced Member
Groups: Member

Joined: 11/3/2015
Posts: 65
Of course.

1. Open the Tabbed Browser
2. Open Two Tabs with 2 urls on both the ZoomFaktor is 100%
3. Select one Tab, press Ctrl and scrol up with the mouse weel. So the Zoomfaktor is 300% or so
4. If you select the second Tab the Zoomfaktor is 300, too.
eo_support
Posted: Wednesday, January 13, 2016 12:54:42 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

We have looked into this and this behavior is by design. The zoom level is set on each WebView but it is also associated to a specific host. The idea is the browser engine tries to keep the same zoom level for the same "site". For example, if you use Google Chrome to go to two different web pages from www.google.com, then changing zoom level for one page will also affect the zoom level for the other page because regardless which one you change, you are really changing the zoom level for "www.google.com". On the other hand, if you use two tabs to load two pages from different domains, then their zoom level will be independently. Our WebView demonstrates the same behavior because our product is built from Chromium source code.

Thanks!
M.Kramer
Posted: Thursday, January 14, 2016 2:55:32 AM
Rank: Advanced Member
Groups: Member

Joined: 11/3/2015
Posts: 65
hey,

thank you for your quick response.

The problem I have is, that I start an emulation of different programs in the different tabs. The url is the same, but the size of the programs is not.

to synchronize the zoom is a feature. Are you able to make it independently adjustable? Something like: ZoomLevelByDomain True/False

Kind regards

Marius Kramer
eo_support
Posted: Thursday, January 14, 2016 9:36:58 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

We won't be able to add this level of customization since we basically take the engine as is and it will quickly become unmanageable for us if we were to add this kind of customization left and right.

However if you use a different engine for each tab, then you should be able to set zoom level for each WebView independently. It is a little bit over kill performance wise but it will provide the level of isolation you needed. See here for more information about using engines:

http://www.essentialobjects.com/doc/webbrowser/advanced/engine.aspx

Thanks!
M.Kramer
Posted: Friday, January 15, 2016 1:52:59 AM
Rank: Advanced Member
Groups: Member

Joined: 11/3/2015
Posts: 65
Hello,

thank you very much ... I think that works for me.

best regards

Marius Kramer


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.