Community
Participate
Working Groups
Reproducible in CVS HEAD with Controls Demo. Go to the Tree Tab. Check "linesVisible" Click "Change Columns Alignment" Notice that the right justified column's text has no padding between the line and the end of the text.
I am not sure if this is how it is supposed to be, but if you shrink a column to smaller than the cell data, then there is also a lack of padding between the right end of the cell content and the column line. I don't recall this being the case in previous versions, but I do know for a fact that there was right cell padding when the content was right justified.
Created attachment 210700 [details] Patch to add proper padding This solves the right padding issue. I am not sure if the adapter or the LCA is the correct place for the fix.
I *think* inside getTextWidth would be better, TreeItem#getTextBounds might be depend on it. Anyway the patch is currently breaking tests, fix those first.
Created attachment 210830 [details] Patch that fixes the issue and updates test cases
Patch applied to CVS HEAD.