title: JavaFX TabPane not filling space
body: <p>I've placed some content inside a TabPane's tab, but the TabPane's width seems to me being equal to the longest element inside the tab (the longest element is not visible on the picture).</p>
  
  <p>The TabPane is inside an AnchorPane with zero valued anchors, that's why I would expect it to fill the whole space, not just the size of the longest element inside..</p>
  
  <p><a href="https://i.stack.imgur.com/Cev07.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cev07.png" alt="tabPane"></a></p>
  
  <p>How could I make the TabPane fill all available space?</p>
  
  <p>UPDATE:</p>
  
  <p>I've forgot to mention, that my a TabView is loaded through the FXMLLoader.load() method and it's added as a child to the AnchorPane.. </p>