If I have a vbox with 2 children, is there a way t...
# tornadofx
s
If I have a vbox with 2 children, is there a way to force it so the two children each take up 50% of the height?
r
Have you tried setting both children's
vgrow
to
ALWAYS
?
s
Yes.
r
It may be overkill, but you may instead want to use a
GridPane
with appropriate constraints. I'm not sure there's a good way to do it with a
VBox
.
c
You might need to also set a vgrow further up your node tree. The Layout Debugger is super helpful for this sort of thing. Find your two sibling nodes and then trace back up from there.