I am using Vaadin 8.7.0.
I have an editable grid set to 100% width for which I need to configure some of the columns’ width to be exactly defined pixels wide. The other columns should take up the remaining space if there is any left free. I’d expect that using column.setWidth on those specific columns would achieve what I need, but I find that the exact pixel definition is simply ignored, and column width is still getting auto calculated for all columns. The grid itself is in a vertical layout. What am I missing here? I’d appreciate any help, thanks in advance.
I am using a heavily customized grid, so I tried to reproduce the problem with a really simple example, and it seems to be working as expected. There is something going on with my custom usage scenario specifically, so I need to investigate further.
As it turned out, minimum column widths were set beforehand, and I was trying to set width below the defined minimum. Since javadoc for Column.setWidth states that it overrides minimum width, I was expecting it to work, but it seems that it does not override it after all.