I have the following problem. I've got this VBox wrapped in an AnchorPane:
<AnchorPane>
<children>
<VBox fx:id="sidebar" prefHeight="400.0" prefWidth="150.0" AnchorPane.bottomAnchor="0.0" AnchorPane.topAnchor="0.0"/>
</children>
</AnchorPane>
And I want to get the displayed height of this vbox (even after e.g. resizing the Anchorpane around it.)
So I tried the following:
double height = sidebar.getHeight();
but for some reason getHeight() just returns 0. So... how do I get the height of that vbox?