View Issue Details

IDProjectCategoryView StatusLast Update
0002959JEDI VCL00 JVCL Componentspublic2006-04-05 01:19
ReporterkhoffrathAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 
Target VersionFixed in Version3.30 
Summary0002959: TJvgStringGrid columns not aligned under TJvgGridHeaderControl
DescriptionWhen calculating the column widths of the grid, the procedure TJvgGridHeaderControl.ResizeColumns assumes that the property 'GridLineWidth' of the assigned grid is 1.

If it is > 1, the columns doesn't align under the sections.

To fix it change:

        if EqualSize then
          G.ColWidths[Col + I] := Trunc((ColsToJoinWidth / ColsToJoin /
            ColsToJoinWidth) * Sections[Sect].Width) - 1
        else
          G.ColWidths[Col + I] := Trunc((G.ColWidths[Col + I] /
            ColsToJoinWidth) * Sections[Sect].Width) - 1;

to:

        if EqualSize then
          G.ColWidths[Col + I] := Trunc((ColsToJoinWidth / ColsToJoin /
            ColsToJoinWidth) * Sections[Sect].Width) - G.GridLineWidth
        else
          G.ColWidths[Col + I] := Trunc((G.ColWidths[Col + I] /
            ColsToJoinWidth) * Sections[Sect].Width) - G.GridLineWidth;

 
TagsNo tags attached.

Activities

obones

2006-03-30 08:05

administrator   ~0008770

This is pending CVS issues resolution at Sourceforge to be added

obones

2006-04-05 01:19

administrator   ~0008928

This is now in CVS

Issue History

Date Modified Username Field Change
2005-05-17 01:32 khoffrath New Issue
2006-03-30 08:05 obones Note Added: 0008770
2006-03-30 08:05 obones Status new => confirmed
2006-04-05 01:19 obones Status confirmed => resolved
2006-04-05 01:19 obones Resolution open => fixed
2006-04-05 01:19 obones Assigned To => obones
2006-04-05 01:19 obones Note Added: 0008928