mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 07:21:34 +02:00
lcl: TCustomForm.GetMonitor consider poDefaultPosOnly
This commit is contained in:
parent
cf9253d7a7
commit
db88c83b22
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user