Let's make our layout component use all the available space on the page:
MainLayoutby adding the following line to the constructor:
lowerSectionand its components by adding the following to the
lowerSection.setSizeFull(); menuLayout.setSizeFull(); contentLayout.setSizeFull();
This is what happens to the layouts when we make them size full:
We are getting closer to our aim. However, there is still a gap between the header and the lower component.