IDE: Don't let FindReplace dialog outside the monitor area. Issue #34436, patch from Ondrej.

git-svn-id: trunk@59340 -
This commit is contained in:
juha 2018-10-22 18:43:56 +00:00
parent f1335e9e8a
commit faba340ef4

View File

@ -3560,7 +3560,7 @@ var
begin
with EditorComponent do
P := ClientToScreen(Point(CaretXPix, CaretYPix));
ABounds := Screen.MonitorFromPoint(P).BoundsRect;
ABounds := Screen.MonitorFromPoint(P).WorkareaRect;
Left := EditorComponent.ClientOrigin.X + (EditorComponent.Width - Width) div 2;
Top := P.Y - Height - 3 * EditorComponent.LineHeight;
if Top < ABounds.Top + 10 then