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

Bug 430707

Summary: Exclude markup for preferred width calculation (GridItem/TableItem)
Product: [RT] RAP Reporter: Fabian Henniges <eclipse>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniele.pirola, eroslaci007
Version: 2.2   
Target Milestone: 2.3 M3   
Hardware: All   
OS: All   
Whiteboard:

Description Fabian Henniges CLA 2014-03-19 11:30:51 EDT
Adding markup to grid items leads to widening columns if ColumnWeightData is used with GridColumnLayout. 

GridColumn#pack uses the max inner width calculated from all GridItem#getPreferredWidth. 

GridItem#getTextWidth might use TextSizeUtil#markupExtent
Comment 1 Ivan Furnadjiev CLA 2014-04-09 09:04:45 EDT
Fixed in GridItem with commit d8f6aeb629116d7edbc67baf18b8554c82949c18.
Comment 2 Ivan Furnadjiev CLA 2014-04-09 09:18:46 EDT
A fix for Tree and Table is pending - change https://git.eclipse.org/r/24718
Comment 3 Ivan Furnadjiev CLA 2014-04-10 06:44:33 EDT
The change https://git.eclipse.org/r/24718 has been merged.
Comment 4 Ivan Furnadjiev CLA 2014-05-19 04:00:43 EDT
*** Bug 435060 has been marked as a duplicate of this bug. ***
Comment 5 Ivan Furnadjiev CLA 2014-07-15 07:31:39 EDT
*** Bug 439606 has been marked as a duplicate of this bug. ***