View Issue Details

IDProjectCategoryView StatusLast Update
0001563JEDI VCL00 JVCL Componentspublic2004-04-03 01:12
ReporteranonymousAssigned Touser72 
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0001563: JvScrollMax: Button headers are wrongfully aligned
Descriptionjgpq are characters that will have their bottom part touching the bottom of the button object. The text is not centered as it should be.

Here is the fix:

procedure TJvBandBtn.FontChanged;
  inherited FontChanged;
  if Parent <> nil then
    with Parent as TJvScrollMaxBand do
      FParentButtonFont := False;
      Canvas.Font := Self.Font;
      // (rom) please check this change
      //FButton.Height := Canvas.TextHeight('W') + 4;
      FButton.Height := CanvasMaxTextHeight(Canvas) + 2;

Change last line here to:

FButton.Height := CanvasMaxTextHeight(Canvas) + 4;
TagsNo tags attached.



2004-04-03 01:12


Fixed in CVS. Thanks.

Issue History

Date Modified Username Field Change
2004-04-02 14:08 anonymous New Issue
2004-04-03 01:12 user72 Status new => resolved
2004-04-03 01:12 user72 Resolution open => fixed
2004-04-03 01:12 user72 Assigned To => user72
2004-04-03 01:12 user72 Note Added: 0003623