Bug 267057

Summary: when hidding a specific GridColumn belonging to a GridColumnGroup, the GridColumnGroup is badly redrawn
Product: z_Archived Reporter: Pinard-Legry Guilhaume <guilhaume_pl>
Component: NebulaAssignee: Chris Gross <cgross>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: shishi428, tom.schindl
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
screen shot with 3 visible columns in a GridColumnGroup
none
screen shot with 2 visible columns (the first is hidden)
none
screen shot with 2 visible columns (the one in the middle is hidden)
none
snippet showing the draw issue
none
Patch for invisible columns and column groups tom.schindl: iplog+

Description Pinard-Legry Guilhaume CLA 2009-03-04 12:13:48 EST
Created attachment 127504 [details]
screen shot with 3 visible columns in a GridColumnGroup

Build ID: M20080911-1700

Steps To Reproduce:
1. create a GridColumnGroup
2. create 3 GridColumns in it (C1, C2, C3)
3. display all -> everything is ok
4. thanks to a button hide C2 (not C1 nor C3)
5. the GridColumnGroup vertical bar is not drawn correctly


More information:
This can be reproduce by hidding any column belonging to a GridColumnGroup except the first and the last ones.
Comment 1 Pinard-Legry Guilhaume CLA 2009-03-04 12:15:09 EST
Created attachment 127506 [details]
screen shot with 2 visible columns (the first is hidden)
Comment 2 Pinard-Legry Guilhaume CLA 2009-03-04 12:15:43 EST
Created attachment 127507 [details]
screen shot with 2 visible columns (the one in the middle is hidden)
Comment 3 Thomas Schindl CLA 2009-03-04 14:28:53 EST
Could you please also attach the snippet?
Comment 4 Pinard-Legry Guilhaume CLA 2009-03-05 02:58:28 EST
Created attachment 127616 [details]
snippet showing the draw issue
Comment 5 Pinard-Legry Guilhaume CLA 2009-03-05 04:24:25 EST
I displayed the bounds of the DefaultColumnGroupHeaderRenderer at the end of the paint method.
After hiding the column in the middle, the bounds of the renderer appear to be as if the column was shown.
But if the column hidden is the first or the last, the bounds are correctly reduced.

If it can help :)

Guilhaume
Comment 6 Thomas Schindl CLA 2009-03-05 04:30:53 EST
I'll try to take a look - if there's no action happening in the next one or 2 weeks please ping this bug.
Comment 7 Pinard-Legry Guilhaume CLA 2009-03-05 05:08:46 EST
Ok, thanks.
Comment 8 Pinard-Legry Guilhaume CLA 2009-03-20 10:07:15 EDT
Hello,

Any news about this issue?

Thanks,

Guilhaume
Comment 9 Claus Klammer CLA 2009-04-07 03:57:10 EDT
Created attachment 131096 [details]
Patch for invisible columns and column groups

cause:
The width of invisible columns must not be included when calculating the width of the column group header.
Comment 10 Thomas Schindl CLA 2010-09-18 16:34:47 EDT
thanks patch released to HEAD