Reputation: 23
I have a table derived from a TableViewer. The table has many columns.I would like to hide few of the columns based on some condition. So i am programatically setting columnWidth(0) and resize to false for that table column i.e.
column.setWidth(0); column.setResizable(false);
I am getting a grey border when I use the above controls to hide in MAC.
Could someone help me how to avoid this grey color getting appended at the end in MAC? Note:This works fine in Windows Systems. The width of the greycolor is propotional to the number of columns I hide :(
Upvotes: 0
Views: 56
Reputation: 36884
I've mentioned this in one of my other answers: OSX requires a minimal width for columns, i.e. you can't make the column ant narrower than that minimum (probably just a few pixels, hence the gray).
Comment 11 of this Bug report mentions this as well.
So I'm afraid, hiding the column isn't an option. You could, however, dispose()
it, but then you'd have to re-create it to get it back.
Upvotes: 3