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

Bug 335736

Summary: Grid column header text with AutoHeight(true) and HeaderWordWrap(true) is drawn outside of header.
Product: z_Archived Reporter: jgielstra Mising name <jgielstra>
Component: NebulaAssignee: Thomas Schindl <tom.schindl>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cgross, laurent.caron
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Diff hack to fix text placement...
none
Example code none

Description jgielstra Mising name CLA 2011-01-28 15:44:58 EST
Build Identifier: 20100917-0705

When I create a grid < attached > with grid.AutoHeight(true) and the columns with HeaderWordWrap(true).  The Columns Header Label is drawn above the bounds of the Header Area.

Seems the y coodinates computed in /org.eclipse.nebula.widgets.grid/src/org/eclipse/nebula/widgets/grid/internal/DefaultColumnHeaderRenderer.java

Are off by the font's height..  I threw a quick hack in to patch it up... < DIFF Attached >


Reproducible: Always

Steps to Reproduce:
See attached Code
Comment 1 jgielstra Mising name CLA 2011-01-28 15:49:00 EST
Created attachment 187878 [details]
Diff hack to fix text placement...
Comment 2 jgielstra Mising name CLA 2011-01-28 15:50:42 EST
Created attachment 187879 [details]
Example code
Comment 3 Laurent CARON CLA 2019-09-25 15:51:44 EDT
Tried today. This very old bug is no longer present.