Dynamic grid-size

Hi !

Shouldn’t this be possible (does not affect the grid in my case)?

xxxGrid.getColumns().forEach(c -> {
	c.setResizable(true);
	c.setAutoWidth(true);
	c.setFlexGrow(30);
	c.setWidth("10px");
});

Question is what you expect to happen.

  • Auto width is ignored when you set width afterwards afaik. Also auto width is only calculated once for performance reasons and needs to be retriggered, when it should be calculated again (see ApiDocs of setAutoWidth()).
  • Resizable should be working, true.
  • Setting a flex grow of 30 on each column makes no sense when doing it for all of them, since flex grow is relative to all siblings (which means you could also simply set a flex grow of 1 which is the default value).