title: Fit FlowPane into ScrollPane
body: <p>I using this code to fir FlowPane into ScrollPane</p>
  
  <pre><code>FlowPane flowPane = new FlowPane(Orientation.HORIZONTAL);
  ScrollPane scroll = new ScrollPane();
  scroll.setContent(flowPane);
  scroll.viewportBoundsProperty().addListener(new ChangeListener&lt;Bounds&gt;()
  {
      @Override
      public void changed(ObservableValue&lt;? extends Bounds&gt; ov, Bounds oldBounds, Bounds bounds)
      {
          flowPane.setPrefWidth(bounds.getWidth());
          flowPane.setPrefHeight(bounds.getHeight());
      }
  });
  </code></pre>
  
  <p>Unfortunately this maybe is not the best solution. Is there another more simple way to fit FlowPane into ScrollPane in Java 8?</p>