LCL: fix hint window bounds issue introduced in a2057a6., issue #41194

This commit is contained in:
rich2014 2024-11-12 20:00:39 +08:00
parent b35ba030b3
commit aeca9749b1

View File

@ -241,6 +241,8 @@ procedure THintWindow.ActivateHint(const AHint: String);
begin
if FActivating then exit;
AdjustBoundsForMonitor;
if Visible and (Caption=AHint)
and EqualRect(FHintRect, BoundsRect) then
begin
@ -263,7 +265,6 @@ end;
procedure THintWindow.ActivateHint(ARect: TRect; const AHint: String);
begin
HintRect := ARect;
AdjustBoundsForMonitor;
ActivateHint(AHint);
end;