Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342485

Summary: Tree shows ... when column is smaller than item text
Product: [Eclipse Project] Platform Reporter: Silenio Quarti <Silenio_Quarti>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: grant_gayed, lshanmug
Version: 3.7   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Silenio Quarti CLA 2011-04-11 14:26:42 EDT
I upgraded my Snow Leopard from 10.6.0 to 10.6.7. The tree started showing the ellipses for items bigger than the column width (instead of clipping the text). Problem does not happen in 10.6.3 either.

Steps:

Run control example.
Select tree tab
Check Multiple columns and Header Visible.
Resize the "Name" column smaller
Comment 1 Silenio Quarti CLA 2011-04-11 14:52:46 EDT
I just released that this is not happening because I upgraded the OS. We changed the line break mode from NSLineBreakByClipping to NSLineBreakByTruncatingTail for bug#297511. 

Showing the ellipses is nicer, but I am not sure custom drawn tree/table will be able to draw similar to the OS anymore. The app would not know it should draw the ellipses. This change might have to be removed for the sake of compatibility with other platforms.
Comment 2 Lakshmi P Shanmugam CLA 2011-04-11 15:10:30 EDT
Hi Silenio,
Windows has the same behavior, the Table/Tree items are truncated in the end.
Comment 3 Silenio Quarti CLA 2011-04-11 15:32:07 EDT
I seem to remmeber Windows only clipped the text in the past. I wonder if something have changed. Note that the first column of Tree does not do the ellipses (another bug?).

I am closing this as invalid for now, since I am the only one complaining.