Bug 267057 - when hidding a specific GridColumn belonging to a GridColumnGroup, the GridColumnGroup is badly redrawn
Summary: when hidding a specific GridColumn belonging to a GridColumnGroup, the GridCo...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Nebula (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Chris Gross CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-04 12:13 EST by Pinard-Legry Guilhaume CLA
Modified: 2021-07-05 11:40 EDT (History)
2 users (show)

See Also:


Attachments
screen shot with 3 visible columns in a GridColumnGroup (12.16 KB, image/png)
2009-03-04 12:13 EST, Pinard-Legry Guilhaume CLA
no flags Details
screen shot with 2 visible columns (the first is hidden) (12.00 KB, image/png)
2009-03-04 12:15 EST, Pinard-Legry Guilhaume CLA
no flags Details
screen shot with 2 visible columns (the one in the middle is hidden) (11.91 KB, image/png)
2009-03-04 12:15 EST, Pinard-Legry Guilhaume CLA
no flags Details
snippet showing the draw issue (2.58 KB, text/plain)
2009-03-05 02:58 EST, Pinard-Legry Guilhaume CLA
no flags Details
Patch for invisible columns and column groups (755 bytes, text/plain)
2009-04-07 03:57 EDT, Claus Klammer CLA
tom.schindl: iplog+
Details

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