Responsive Table - Not Defined by pixels

Does anyone have an alternate solution for getting tables to work in a responsive layout ?

Currently doing a setWidth(100, Unit.PRECENTAGE) still applies pixel widths to columns, which doesn’t work in a responsive design.

It would be great if you could apply % width to columns instead of pixels.

Found a solution that seems to work:

https://vaadin.com/forum/#!/thread/117302

Add a BrowserWindowResizeListener to detect the browse resize, then re-set the table width to 100%

Page.getCurrent().addBrowserWindowResizeListener(new BrowserWindowResizeListener(){

            private static final long serialVersionUID = 1L;

            @Override
            public void browserWindowResized(BrowserWindowResizeEvent event) {
                myTable.setWidth(100, Unit.PERCENTAGE);
                
            }
            
        });