vaadin 14 grid height problem?

I am creating Div and add the grid but it is not height is not working why?

setting table.setMinHeight(“100%”); it also not working?

some sample grid code for how to setting height ?

Your surrounding element needs a proper height definition. Afterwards the grid can be used like normal