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

Bug 429894

Summary: [Table][Grid] Textoverflow Behavior in Table and Grid is not consistent between RCP and RAP
Product: [RT] RAP Reporter: Joachim Butz <joachim.butz>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.2   
Target Milestone: 3.0 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Snippet, which shows textoverflow in Table and Grid in RCP
none
Snippet, which shows textoverflow in Table and Grid in RAP, with and without markup
none
screenshot, which shows RCP behavior, left side is Grid, right side is Table
none
screenshot, which shows RAP behavior, top is without markup, bottom is with markup none

Description Joachim Butz CLA 2014-03-07 11:57:52 EST
Currently, when a text does not fit into a table or grid cell, then Ellipsis (...) are shown in RCP. In RAP the text is clipped.
The same applies for the column header of a table/grid.

When I want to have ellipsis in table/grid cells in RAP, then I can do "setData(RWT.MARKUP_ENABLED, true)" for the table/grid and then wrap the text of a cell inside a div-tag with style "text-overflow: ellipsis".
But when I want to have ellipsis in the column header, I have no way of doing so currently.

It would be great, if the overflow behavior in RCP and RAP were the same.
But for me it would also be sufficient, if there was a way to do the setData-Workaround also for column headers.
Comment 1 Joachim Butz CLA 2014-03-07 11:58:52 EST
Created attachment 240658 [details]
Snippet, which shows textoverflow in Table and Grid in RCP
Comment 2 Joachim Butz CLA 2014-03-07 12:00:07 EST
Created attachment 240659 [details]
Snippet, which shows textoverflow in Table and Grid in RAP, with and without markup
Comment 3 Joachim Butz CLA 2014-03-07 12:02:35 EST
Created attachment 240660 [details]
screenshot, which shows RCP behavior, left side is Grid, right side is Table
Comment 4 Joachim Butz CLA 2014-03-07 12:03:42 EST
Created attachment 240662 [details]
screenshot, which shows RAP behavior, top is without markup, bottom is with markup
Comment 5 Ivan Furnadjiev CLA 2014-06-25 05:20:23 EDT
Fixed in master with change https://git.eclipse.org/r/28947. Table/TreeItem and Table/TreeColumn CSS elements now support "text-overflow" property. Valid values are "clip" and "ellipsis". In default theme the "ellipsis" is made default.