Skip to content

Commit

Permalink
for last atflatcontrols
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed May 31, 2023
1 parent 86ef3e9 commit 29a57dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion atsynedit_cmp/atsynedit_cmp_form.pas
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ procedure CloseFormAutoCompletion;
implementation

uses
ATCanvasPrimitives,
ATStrings,
ATStringProc,
ATStringProc_Separator,
Expand Down Expand Up @@ -786,7 +787,7 @@ procedure TFormATSynEditComplete.UpdateListboxItemHeight;
begin
if CompletionOps.MonoFont then
begin
N:= ATFlatTheme.DoScaleFont(ATFlatTheme.MonoFontSize) * 18 div 10 + 2;
N:= CanvasFontSizeToPixels(ATFlatTheme.DoScaleFont(ATFlatTheme.MonoFontSize));
N:= N * Max(96, Screen.PixelsPerInch) div 96;
Listbox.ItemHeight:= N;
end
Expand Down

0 comments on commit 29a57dc

Please sign in to comment.