mirror of
https://github.com/microsoft/terminal.git
synced 2026-04-06 06:09:50 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user