How to stop horizontal scrollbar appearing for Grid?


Vaadin 8.1

I have a VerticalLayout with HorizontalLayout Panel which contains Grid. I’ve

setSizeUndefined(); on every enclosing component and Grid size is set to full to but Grid refuses to show all of the columns generating horizontal scrollbar.
Somebody can point me at paradox that I don’t define the height of any enclosing components, but why default grid setting can’t adjust itself to size of columns is a mystery to myself.

When I set the Grid/Panel size in pixels to 1000 then all is ok, but this is not dynamic behavior I want.

I’ve managed to solve height by setting to the size of the elements however I don’t understand this default behavior of the grid.

Same issue as this ticket, perhaps?
https://github.com/vaadin/framework/issues/8548