title: Android WebView: Element height returned by JavaScript is inconsistent
body: <p>I have the following HTML document:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div&gt;
              &lt;p&gt;blah blah blah&lt;/p&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I need to determine the height of <code>&lt;div&gt;&lt;/div&gt;</code> to adjust my <code>WebView</code> height accordingly, which I do the following way:</p>
  
  <pre><code>document.getElementsByTagName('div')[0].scrollHeight
  </code></pre>
  
  <p>Sometimes the value returned is correct, sometimes it is a bit less than actual. I call this piece of JavaScript in <code>WebViewClient.onPageFinished()</code> method, so the page should have been rendered by this time.</p>
  
  <p>I also tried <code>.clientHeight</code>, <code>.offsetHeight</code>, and even <code>.getBoundingClientRect().height</code></p>
  
  <p>Is there any way to get correct and consistent values?</p>