Open onlineandy opened 6 years ago
The problem with the fix (setting to 100%) is, that then all margins breaks. So, this is not really an option. :(
As a workaround we do JavaScript.eval("window.addEventListener('resize', vaadin.forceLayout);");
in UI.init().
Vaadin 8 and resposive layout 2.1.1
We are using ResponsiveLayout with a grid inside which should be 100% width. I have attached an example which does not work as expected (layout2 on browserresize). When I uncomment the lines with "100%", it works. But I think there should be a better solution to this? Am I missing something?
The grid resizes to 100% if a column is clicked (server event).