mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 05:39:14 +02:00
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:
parent
c20d767f70
commit
c285c06219
@ -246,6 +246,8 @@ begin
|
|||||||
if axis <> nil then
|
if axis <> nil then
|
||||||
begin
|
begin
|
||||||
titleSize := axis.MeasureTitleSize(ch.Drawer);
|
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;
|
axis.LabelSize := maxTitleSize[al] + maxLabelSize[al] - titleSize;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user