lcl: TCustomForm.GetMonitor consider poDefaultPosOnly

This commit is contained in:
mattias 2022-05-16 12:14:10 +02:00
parent cf9253d7a7
commit db88c83b22

View File

@ -2406,7 +2406,7 @@ begin
begin
// first time showing, check Position and DefaultMonitor
case Position of
poDefault:
poDefault, poDefaultPosOnly:
Result := Screen.MonitorFromWindow(Handle, mdNull);
poDesigned, poDefaultSizeOnly:
Result := Screen.MonitorFromPoint(point(Left,Top));