mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 02:48:31 +02:00
LCL: forms: call AutoAdjustLayout in Show if necessary - it doesn't receive LM_DPICHANGED if the form is moved to a different monitor while being invisible.
git-svn-id: trunk@53993 -
This commit is contained in:
parent
ae58211303
commit
df696ddabc
@ -2318,6 +2318,10 @@ end;
|
||||
------------------------------------------------------------------------------}
|
||||
procedure TCustomForm.Show;
|
||||
begin
|
||||
if Scaled and (Monitor.PixelsPerInch<>PixelsPerInch) then
|
||||
AutoAdjustLayout(lapAutoAdjustForDPI, PixelsPerInch, Monitor.PixelsPerInch,
|
||||
Width, MulDiv(Width, Monitor.PixelsPerInch, PixelsPerInch), True);
|
||||
|
||||
Visible := True;
|
||||
BringToFront;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user