title: Android WebView.loadDataWithBaseURL first page load is a mess. How to fix it?
body: <p>I use WebView.loadDataWithBaseURL for loading my help page from internal resources of my application.</p>
  
  <p>I have help.html and a few images located in the assets directory. The page loads and shows with images, but the text around image is a mess. It did not show on the right side of the image, instead the image overlaps the text.</p>
  
  <p>This happens only on first loading of the page. If I close the WebView and open it again, then everything is fine.
  It seems that at first loading WebView spends some time for loading images and does not reformat page after that. On the second attempt images are cached and displayed together with text and properly formatted.</p>
  
  <p><strong>What is the solution for this problem?</strong></p>
  
  <p><strong>Did anyone face this problem too?</strong></p>
  
  <p>Here is my code:</p>
  
  <pre><code>    app.setContentView(R.layout.help);
      final WebView web = (WebView) app.findViewById(R.id.helpWebView);
      web.setBackgroundColor(0);
      web.loadDataWithBaseURL("file:///android_asset/", helpHtml, "text/html", "utf-8", null);        
  </code></pre>
  
  <p>Web page is inside the helpHtml string with the code:</p>
  
  <pre><code>&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;img src="html/flddesc.png" align="left"/&gt;this should be my long long text...&lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>P.S: html/flddesc.png is a PNG8 image 180x200 ~20kb of size</p>