Welcome Guest Search | Active Topics | Sign In | Register

GetPageSize() returning 0 for height incorrectly Options
Peavy
Posted: Wednesday, January 17, 2018 11:57:37 AM
Rank: Advanced Member
Groups: Member

Joined: 6/26/2015
Posts: 98
Hello,

It looks like in the latest version of the WebView, the GetPageSize() method no longer works correctly on all sites. When used on the following sites, it returns 0, even though that is not the case.

http://www.cbipro.com/home.html
http://springmeadownursery.com/local-roots
http://convinceandconvert.com/

Rolling back to version 17.3.13 fixes this issue, but that uses the older version of the Chromium engine, which creates other issues.
eo_support
Posted: Thursday, January 18, 2018 8:52:18 AM
Rank: Administration
Groups: Administration

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

Please use the following code to get page height:

Code: C#
int height = (int)webView.EvalScript("document.documentElement.scrollHeight");


The current implementation uses EvalScript("document.body.scrollHeight"). The value of this property changed when the only all contents in the body element is either fixed or absolute positioned or hidden. This is the case of those pages. We will update our code to use documentElement in our next build.

Thanks!
eo_support
Posted: Thursday, January 25, 2018 11:36:42 AM
Rank: Administration
Groups: Administration

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

We have posted a new build that addressed this issue on our side. You can download the new build from our download page. Please take a look and let us know how it goes.

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.