[PR #8039] wpf: base margin height off Y dpi, not X dpi #27068

Closed
opened 2026-01-31 09:19:48 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/8039

State: closed
Merged: Yes


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

**Original Pull Request:** https://github.com/microsoft/terminal/pull/8039 **State:** closed **Merged:** Yes --- 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
claunia added the pull-request label 2026-01-31 09:19:48 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27068