Resize grid div as you make your window smaller.

I’d like the window width to change as I am resizing my browser window. Just as flexbox would be able to do.
I tried:
mygrid.enableAutoWidth(true);
But this doesn’t do it ‘on the fly’ as the guide suggests. I need to reload the page for it to work. It’s also not ‘pro’, so does anyone know why this wouldn’t work?

Cheers!

Please, make sure that you are attaching your grid to a window using the attachGrid() method.

I actually meant the table in comparison to the browser window width.
Just like in this preview:
jsfiddle.net/x0vkjr2z/

I tried fiddling around in the chrome dev-tools, but I can’t find which element to put on 100% or 100vw.
Any ideas?
Cheers!

Please, try to set the width of your grid container in the percentages of the html-body.