This content has been marked as final. Show 3 replies
I suspect that your issue is that the HBox resizes the inner VBox - so the VBox always takes all the available horizontal space.
Try setting the VBox max size to Region.USE_PREF_SIZE in addition to setting the HBox alignment. This should
prevent the VBox to grow horizontally.
if you want to see where the boundaries of your VBox and HBox are, you can set a background color in their style property:
hope this helps,