Dynamic grid width

I have to make project of webb app to my university. (Sorry on start for my english :D) I started to learn to how use vaadin and have one question about grid component. I see that I can resize width of columns with using my mouse. But if I make that width too big columns are scrolling. If I make that with too small columns isn’t matching with borders of window what you can see on picture.Is there way that with changing columns width there comes also change of grid component width? I mean that there is not scrolling just component is dynamically changing its size.

If you use setAutoResizeWidth(true) with this extension, it does what you are looking for.