diff --git a/components/rx/trunk/tooledit.pas b/components/rx/trunk/tooledit.pas index b0a00a93f..53c564104 100644 --- a/components/rx/trunk/tooledit.pas +++ b/components/rx/trunk/tooledit.pas @@ -608,7 +608,7 @@ begin ABounds := Screen.MonitorFromPoint(P).BoundsRect; Y := P.Y + Height; - if Y + FPopup.Height > ABounds.Right then + if Y + FPopup.Height > ABounds.Bottom then Y := P.Y - FPopup.Height; case FPopupAlign of epaRight: