title: JavaFX: avoid specifying absolute width
body: <p>I have got a <code>SplitPane</code> in a <code>SplitPane</code> -- both horizontal. I would like to avoid specifying absolute width/height. When I don't specify width/height, the second <code>SplitPane</code> is not shown:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;?import javafx.scene.control.*?&gt;
  &lt;?import javafx.scene.Group?&gt;
  &lt;?import javafx.scene.layout.*?&gt;
  &lt;BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="500.0" style="-fx-background-color: cornsilk;" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"&gt;
      &lt;left&gt;
          &lt;ToolBar orientation="VERTICAL"&gt;
              &lt;items&gt;
                  &lt;Group&gt;
                      &lt;children&gt;
                          &lt;Button rotate="-90.0" text="Project" /&gt;
                      &lt;/children&gt;
                  &lt;/Group&gt;
                  &lt;Group&gt;
                      &lt;children&gt;
                          &lt;Button rotate="-90.0" text="Structure" /&gt;
                      &lt;/children&gt;
                  &lt;/Group&gt;
              &lt;/items&gt;
          &lt;/ToolBar&gt;
      &lt;/left&gt;
      &lt;center&gt;
        &lt;SplitPane dividerPositions="0.25" style="-fx-background-color:red;"&gt;
          &lt;items&gt;
            &lt;AnchorPane  style="-fx-background-color:darkblue;"/&gt;
            &lt;AnchorPane  style="-fx-background-color:gold;"&gt;
                &lt;children&gt;
                    &lt;SplitPane dividerPositions="0.25"&gt;
                        &lt;items&gt;
                            &lt;AnchorPane style="-fx-background-color:khaki;"/&gt;
                            &lt;AnchorPane style="-fx-background-color:lime;"/&gt;
                        &lt;/items&gt;
                    &lt;/SplitPane&gt;
                &lt;/children&gt;
            &lt;/AnchorPane&gt;
          &lt;/items&gt;
        &lt;/SplitPane&gt;
      &lt;/center&gt;
  &lt;/BorderPane&gt;
  </code></pre>