vaadin 14 grid

In my project mainlayout is setsizefull but grid is also setsizefull but maximize the screen grid is not expand with mainlayout size.how to increase the grid size full screen mode?

Make sure that all components in between the body element and your grid have the appropriate height in the browser devtools. Especially if you are using the app layout.