I have a grid which width is bigger than its parent so I have to have horizontal scroller.
I want to have few columns with fixed size and one which has width calculated based on its content (so it grows automatically).
I have something like this:
Grid<RowType> grid = new Grid<>();
grid.setItems(rows);
grid.addColumn(RowType::getId)
.setHeader("Id")
.setFlexGrow(0)
.setWidth("100px");
...
grid.addColumn(RowType::getName)
.setHeader("Name")
.setFlexGrow(1);
The column with getName should grow automatically.
When I set setFlexGrow(1) then this column (without fixed size) occupies just the rest from parent component width.
How it can be achieved that this column will grow to display whole content and the whole grid will have width bigger than 100%?