ide: designer: don't scale forms with Scaled=False.

git-svn-id: trunk@53623 -
This commit is contained in:
ondrej 2016-12-09 23:02:55 +00:00
parent c2e239e881
commit 7dfdc75c20

View File

@ -6384,11 +6384,10 @@ begin
if NewComponent is TCustomDesignControl then
begin
DsgControl := TCustomDesignControl(NewComponent);
if DsgControl.DesignTimePPI<>Screen.PixelsPerInch then
begin
if DsgControl.Scaled and (DsgControl.DesignTimePPI<>Screen.PixelsPerInch) then
DsgControl.AutoAdjustLayout(lapAutoAdjustForDPI, DsgControl.DesignTimePPI, Screen.PixelsPerInch, 0, 0, False);
DsgControl.DesignTimePPI := Screen.PixelsPerInch;
end;
DsgControl.DesignTimePPI := Screen.PixelsPerInch;
DsgControl.PixelsPerInch := Screen.PixelsPerInch;
end;
if NewComponent is TFrame then