title: Android WebView adding strange empty space at the bottom
body: <p>I'm trying to add more empty space to a loaded <code>WebView</code> using <code>JavaScript</code>.</p>
  
  <p>I load data using <code>loadDataWithBaseUrl()</code> from a <code>String</code> resource. 
  Then, after measuring some content, I need to make <code>WebView</code> bigger, say for 100 pixels.
  So I call javascript function using <code>loadDataWithBaseUrl()</code>:</p>
  
  <pre><code>mWebView.loadUrl("javascript:addHeight()");
  </code></pre>
  
  <p><code>Javascript</code> function is defined in the original HTML:</p>
  
  <pre><code>function addHeight() { " +
      var elemDiv = document.createElement('div');
      elemDiv.style.cssText = 'height:100px;'; 
      document.body.appendChild(elemDiv); 
  } 
  </code></pre>
  
  <p>After this, <code>WebView</code> resizes itself to fit the new content. However, resulting height is not originalSize + 100px, but bigger.
  I don't know where's the problem. I can't determine the target size, because it depends on the size of the appended <code>div</code> and it will be always different.</p>
  
  <p>Has anybody tried this? Are you familiar with this behaviour?</p>