This content has been marked as final. Show 2 replies
The TilePane appears to be adding space for an extra row; not exactly sure why. Try adding the controls directly to the HBox and you'll see the space disappears. Try adding TextAreaBuilder.create().prefRowCount(10).prefColumnCount(20).build() to the TilePane as well as the buttons and you'll see way more extra space.
Calling either tilePane.setMinHeight(0); or root.setMinHeight(0); fixes the problem in the code you provided - I'm not sure I understand exactly what layout the TilePane is doing here that causes the extra space, so you may need to investigate further.