Scrollbars?

May 28, 2010 at 12:35 AM

This is a dumb question isn't it, but I'm asking...

How do I know how 'big' the WebView wants to be?

Coordinator
May 28, 2010 at 1:01 AM

You can query the size of the page through JavaScript, if that's what you mean. Try this:

int width = webView.ExecuteJavaScriptWithResult("document.width;").Get().ToInteger();
int height = webView.ExecuteJavaScriptWithResult("document.height;").Get().ToInteger();