title: JavaFX 2 BorderPane Use Full Space
body: <p>I´m just facing a little issue that I can´t solve by myself.
  I try to place a vBox including a TextField and a HTML-Editor in my BorderPane, but
  the full space is not used. Another problem is that if I shrink the window, the html-editor
  overlaps with my left option window.</p>
  
  <p><img src="https://i.stack.imgur.com/NNCG2.png" alt="enter image description here"></p>
  
  <pre><code>private void initEditor()
  {
  editor = new HTMLEditor();
  editor.setId("editor");
  editor.lookup(".top-toolbar").setDisable(true);
  editor.lookup(".top-toolbar").setManaged(false);
  ((ToolBar) editor.lookup(".bottom-toolbar")).getItems().addAll(FXCollections.observableArrayList(((ToolBar)editor.lookup(".top-toolbar")).getItems()));
  
  editorBox = new VBox();
  TextField field = new TextField();
  field.setPrefHeight(36);
  field.setId("editor-title");
  editorBox.setFillWidth(true);
  editorBox.getChildren().addAll(field, editor);
      root.setCenter(editorBox);
  }
  </code></pre>