title: webview doesn´t maximize with the screen in javafx
body: <p>Im working with scenebuilder and I want a my application to hava a lateral toolbar and a webview. The problem that I´m having is when I maximize the screen, the webview remains the same size while the pane get bigger. I have tried with Stackpane but it didn´t work. The structure right now looks something like this:</p>
  
  <pre><code>Pane
     VBox
     StackPane
        WebView
  </code></pre>
  
  <p>Edit: I have tried other things, for example this let me resize fine but the stackpane fills the entire screen, no place for the vBox</p>
  
  <pre><code>AnchorPane
     VBox
     StackPane
        WebView
  </code></pre>
  
  <p>My fxml</p>
  
  <pre><code>&lt;AnchorPane fx:id="anchor" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/9.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="application.BrowserController"&gt;
     &lt;children&gt;
        &lt;VBox fx:id="vbox" prefHeight="600.0" prefWidth="200.0" style="-fx-background-color: red;" /&gt;
  &lt;StackPane fx:id="subPane" alignment="CENTER_RIGHT" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"&gt;
           &lt;children&gt;
              &lt;WebView fx:id="webview" prefWidth="600.0" /&gt;
           &lt;/children&gt;
        &lt;/StackPane&gt;
     &lt;/children&gt;
  &lt;/AnchorPane&gt;
  </code></pre>