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

Bug 316598

Summary: [nebula grid] Making column header not visible causes first row to render incorrectly
Product: z_Archived Reporter: Justin Dolezy <justin>
Component: NebulaAssignee: Chris Gross <cgross>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: tom.schindl
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Standard snippet modified to clearly demonstrate the problem
none
Patch that fixes the problem tom.schindl: iplog+

Description Justin Dolezy CLA 2010-06-11 08:45:49 EDT
Build Identifier: I20100520-1744

If the first row is the same height as the column header, then when no column header is required the first row is not painted at all. If it is taller than the header then the portion where the column header would be is obscured.

Reproducible: Always

Steps to Reproduce:
1. Open GridSnippet1 (or the attached modified version)
2. Change setHeaderVisible() call to pass in false
3. Run and observe that not only is the header not visible, the first row isn't either
Comment 1 Justin Dolezy CLA 2010-06-11 08:47:45 EDT
Created attachment 171716 [details]
Standard snippet modified to clearly demonstrate the problem
Comment 2 Justin Dolezy CLA 2010-06-11 09:23:50 EDT
Created attachment 171719 [details]
Patch that fixes the problem

The code setting the clipping region does not take into account whether the column headers are visible or not.
Comment 3 Thomas Schindl CLA 2010-06-11 09:33:37 EDT
prefect - released to head
Comment 4 Justin Dolezy CLA 2010-06-11 10:09:03 EDT
Great! This will be in the Grid nightly build jar very soon then?
Comment 5 Thomas Schindl CLA 2010-06-11 10:11:16 EDT
yes