Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342485 - Tree shows ... when column is smaller than item text
Summary: Tree shows ... when column is smaller than item text
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-11 14:26 EDT by Silenio Quarti CLA
Modified: 2011-04-11 15:32 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.