Skip to content

Commit

Permalink
Issue #1198: f) AutoScale() should scale existing nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmarder committed Aug 1, 2023
1 parent cdb0413 commit 8bf8b07
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Source/VirtualTrees.BaseTree.pas
Original file line number Diff line number Diff line change
Expand Up @@ -16436,9 +16436,12 @@ procedure TBaseVirtualTree.AutoScale();
lTextHeight := Canvas.TextHeight('Tg') + 2;
// By default, we only ensure that DefaultNodeHeight is large enough.
// If the form's dpi has changed, we scale up and down the DefaultNodeHeight, See issue #677.
if (lTextHeight > Self.DefaultNodeHeight) then
if (lTextHeight > Self.DefaultNodeHeight) then begin
ScaleNodeHeights(lTextHeight, DefaultNodeHeight);
Self.DefaultNodeHeight := lTextHeight;
end;
TVTHeaderCracker(FHeader).ChangeScale(lTextHeight, DefaultNodeHeight);
end;// if
end;// if HandelAllocated
end;

//----------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 8bf8b07

Please sign in to comment.