Follow these steps to get rid of that gap:
VerticalLayout(and other layouts too) has a method to specify how contained components should expand. Try adding this line to the
Take a look at the resulting layout:
Think of expand ratios as the amount of space that some component can take inside its parent layout expressed as a ratio. Initially,
lowerSection had both an undefined expand ratio, which means that, to be fair, each could take at most 50 percent of the space in the parent layout. We haven't assigned ...