|
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.htmlhttp://springmeadownursery.com/local-rootshttp://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.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,072
|
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!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,072
|
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!
|
|