| Summary: | [Tree] Right Tree-Cell padding ignored when text is aligned to the right | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Austin Riddle <austin.riddle> | ||||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | tbuschto | ||||||
| Version: | 1.5 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Austin Riddle
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. |