Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335736 - Grid column header text with AutoHeight(true) and HeaderWordWrap(true) is drawn outside of header.
Summary: Grid column header text with AutoHeight(true) and HeaderWordWrap(true) is dra...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Nebula (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Thomas Schindl CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-28 15:44 EST by jgielstra Mising name CLA
Modified: 2021-07-05 11:40 EDT (History)
2 users (show)

See Also:


Attachments
Diff hack to fix text placement... (792 bytes, patch)
2011-01-28 15:49 EST, jgielstra Mising name CLA
no flags Details | Diff
Example code (8.73 KB, text/plain)
2011-01-28 15:50 EST, jgielstra Mising name CLA
no flags Details

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