I am having some issues/questions with specifying the column width for Nattables. Like the poster in this thread http://www.eclipse.org/forums/index.php/t/440363/ , my Nattable does not use up extra space, which does make sense, when all column have a fixed width. To avoid this I defined the width of the columns in percents instead. (Which was also one of the solutions given in the thread I mentioned). Unfortunately the same not-using-all-the-space behavior still occurs, if one of the columns is resized (to a smaller size) by the user.
I am not sure if this is a bug having something to do with the ColumnResizeCommandHandler calling "setColumnWidthByPosition" on the dataLayer instead of "setColumnWidthPercentageByPosition" or if this is the intended behavior.
Could somebody help me with this?
Related to this I was also wondering if there is a way of using fixed-width configuration and percentage configuration at the same time. I have the impression is doesn't work, but on the other hand I suppose it is pretty common to having one column that should be constant in size (e.g. a column with an icon) and having the others defined as percentages.
Thanks for your help
yes it is related to ColumnResizeCommandHandler calling "setColumnWidthByPosition". As far as I remember the value will be translated to the percentage value if a user resizes the column, but the other columns are not recalculated then. So it's worth a discussion whether this is a feature or a bug, but in fact it is something NatTable should take care of. I created an enhancement bug for this.