title: webview doesn't load completly the web page on javafx
body: <p>i have a java class as below:</p>
  
  <pre><code>package client;
  
  import java.io.IOException;
  import javafx.application.Application;
  import javafx.scene.Scene;
  import javafx.scene.layout.StackPane;
  import javafx.scene.web.WebEngine;
  import javafx.scene.web.WebView;
  import javafx.stage.Stage;
  
  public class Test extends Application {
      @Override
      public void start(Stage stage) throws Exception {
          StackPane root = new StackPane();
  
          WebView view = new WebView();
          WebEngine engine = view.getEngine();
          engine.load(Test.class.getResource("/mapview/leafDani.html").toExternalForm());
          root.getChildren().add(view);
  
          Scene scene = new Scene(root, 700, 700);
          stage.setScene(scene);
          stage.show();
      }
  
      public static void main(String[] args) throws IOException {
          Application.launch(args);
      }
  }
  </code></pre>
  
  <p>the html file i made load an opnestreetmap center on london:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  
  &lt;html&gt;
  
  &lt;head&gt;
      &lt;title&gt;Daniele test map&lt;/title&gt;
  
      &lt;link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.css" /&gt;
  
      &lt;script src="https://npmcdn.com/leaflet@1.0.0-rc.3/dist/leaflet.js"&gt;&lt;/script&gt;
  
      &lt;style&gt;
          #map {
              width: 700px;
              height:700px;
          }
      &lt;/style&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;div id="map"&gt;&lt;/div&gt;
  
  &lt;script&gt;
  
      function jumpTo(lon, lat, zoom) {
  
          map.setView(new L.LatLng(lat, lon), zoom);
      }
  
      var map = L.map('map').setView([51.505, -0.09], 13);
  
      L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
          attribution: '&amp;copy; &lt;a href="http://osm.org/copyright"&gt;OpenStreetMap&lt;/a&gt; contributors'
      }).addTo(map);
  
  
  &lt;/script&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>when i start the application the page seems to be loaded, i can see the button for zoom in and zoom out but the map doesn't appear or partially appear.
  if i open the html file with my browser is perfect.
  im using intellij as IDE and i even tried to modify the defualt browser but i got the same resoult.
  any suggestions? </p>