Hi all,
I load a PNG-Image to the webview WV1. Here is a sniplet of my code:
Dim WV1 as WebView
Dim MyWebViewExtras as WebViewExtras
Dim MyWebViewExtends as WebViewExtends
' "bildDir" is a folder on the external SD-card
' "bildDatei" is a PNG-image in this folder
s = "<html><body><img src='file://"& bildDir & "/" & bildDatei & "' width=100% /></body></html>"
WV1.ZoomEnabled = False
WV1.LoadHtml(s)
With MyWebViewExtras.GetContentHeight(WV1) I get 5336.
I scroll the image down to the bottom with my fingers.
With MyWebViewExtends.getScrollY(WV1) I get 8720 (and this is the the top of the screen, the screen
height is additional to 8720)
Which value is the correct height? I need it to scroll the image in the webview programatically. In the
library "WebViewExtends" there is no method or property to get the height.
I load a PNG-Image to the webview WV1. Here is a sniplet of my code:
Dim WV1 as WebView
Dim MyWebViewExtras as WebViewExtras
Dim MyWebViewExtends as WebViewExtends
' "bildDir" is a folder on the external SD-card
' "bildDatei" is a PNG-image in this folder
s = "<html><body><img src='file://"& bildDir & "/" & bildDatei & "' width=100% /></body></html>"
WV1.ZoomEnabled = False
WV1.LoadHtml(s)
With MyWebViewExtras.GetContentHeight(WV1) I get 5336.
I scroll the image down to the bottom with my fingers.
With MyWebViewExtends.getScrollY(WV1) I get 8720 (and this is the the top of the screen, the screen
height is additional to 8720)
Which value is the correct height? I need it to scroll the image in the webview programatically. In the
library "WebViewExtends" there is no method or property to get the height.