TAChart: Fix misalignment of axis position of charts linked by TChartExtentLink when an axis has no title. Forum https://forum.lazarus.freepascal.org/index.php/topic,67087.msg515909.html#msg515909

This commit is contained in:
wp_xyz 2024-04-29 11:55:45 +02:00
parent c20d767f70
commit c285c06219

View File

@ -246,6 +246,8 @@ begin
if axis <> nil then
begin
titleSize := axis.MeasureTitleSize(ch.Drawer);
if (maxTitleSize[al] <> 0) and (not axis.Title.Visible or (axis.Title.Caption = '')) then
dec(titleSize, axis.Title.Distance);
axis.LabelSize := maxTitleSize[al] + maxLabelSize[al] - titleSize;
end;
end;