wpf: base margin height off Y dpi, not X dpi (#8039)

This PR resolves an issue I observed in
Microsoft.Terminal.Wpf.TerminalControl.CalculateMargins(). Specifically,
on line 194 in the project. In this example, the line: `height =
controlSize.Height - (this.TerminalRendererSize.Height /
dpiScale.DpiScaleX);` is associating the height margin with
dpiScale.DpiScaleX instead of dpiScale.DpiScaleY. This PR changes the
association to DpiScaleY.

Closes #8038
This commit is contained in:
John Jenkins
2020-10-26 15:43:04 -07:00
committed by GitHub
parent 84bda067c5
commit c095a678a5

View File

@@ -191,7 +191,7 @@ namespace Microsoft.Terminal.Wpf
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;