IDE: scale sourceeditor. issue #31753

git-svn-id: trunk@55676 -
This commit is contained in:
ondrej 2017-08-17 10:40:11 +00:00
parent 3f21545b7d
commit 6fe5b10fcc

View File

@ -4927,6 +4927,8 @@ Begin
RegisterMouseActionExecHandler(@EditorHandleMouseAction);
// IMPORTANT: when you change above, don't forget updating UnbindEditor
Parent := AParent;
if AParent.Font.PixelsPerInch<>96 then
AutoAdjustLayout(lapAutoAdjustForDPI, 96, AParent.Font.PixelsPerInch, 0, 0);
end;
Manager.CodeTemplateModul.AddEditor(FEditor);
Manager.FMacroRecorder.AddEditor(FEditor);