From 5d5b67188e0b9130ee2f5ea84575c74a9adf1681 Mon Sep 17 00:00:00 2001 From: jjenkins Date: Sun, 25 Oct 2020 15:26:08 -0700 Subject: [PATCH] Per the conversation in: https://github.com/microsoft/terminal/issues/8038, changing a constraint placed on the height margin from dpiScale.DpiScaleX to dpiScale.DpiScaleY in Microsoft.Terminal.Wpf.TerminalControl.CalculateMargins(). --- src/cascadia/WpfTerminalControl/TerminalControl.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cascadia/WpfTerminalControl/TerminalControl.xaml.cs b/src/cascadia/WpfTerminalControl/TerminalControl.xaml.cs index 62ec5cc4497..87c2df25a06 100644 --- a/src/cascadia/WpfTerminalControl/TerminalControl.xaml.cs +++ b/src/cascadia/WpfTerminalControl/TerminalControl.xaml.cs @@ -191,7 +191,7 @@ private Thickness CalculateMargins(Size controlSize = default) if (this.TerminalRendererSize.Height != 0) { - height = controlSize.Height - (this.TerminalRendererSize.Height / dpiScale.DpiScaleX); + height = controlSize.Height - (this.TerminalRendererSize.Height / dpiScale.DpiScaleY); } width -= this.scrollbar.ActualWidth;