-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wpf: base margin height off Y dpi, not X dpi #8039
wpf: base margin height off Y dpi, not X dpi #8039
Conversation
… on the height margin from dpiScale.DpiScaleX to dpiScale.DpiScaleY in Microsoft.Terminal.Wpf.TerminalControl.CalculateMargins().
It looks like the Terminal CI builds failed while trying to restore packages.. is there any way to re-execute these tests? |
/azp run |
Sorry -- our CI can be flaky at times 😄 |
Azure Pipelines successfully started running 1 pipeline(s). |
Hello @DHowett! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
You can ignore the Linter. |
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 (cherry picked from commit c095a67)
🎉 Handy links: |
🎉 Handy links: |
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 withdpiScale.DpiScaleX instead of dpiScale.DpiScaleY. This PR changes the
association to DpiScaleY.
Closes #8038