mirror of
https://github.com/microsoft/terminal.git
synced 2026-01-08 21:02:50 -05:00
Make sure to account for the size the padding _will be_ scaled to (#5091)
* [x] Fixes #2061 for good this time
This commit is contained in:
@@ -1975,8 +1975,9 @@ namespace winrt::Microsoft::Terminal::TerminalControl::implementation
|
||||
|
||||
double height = rows * fFontHeight;
|
||||
auto thickness = _ParseThicknessFromPadding(settings.Padding());
|
||||
width += thickness.Left + thickness.Right;
|
||||
height += thickness.Top + thickness.Bottom;
|
||||
// GH#2061 - make sure to account for the size the padding _will be_ scaled to
|
||||
width += scale * (thickness.Left + thickness.Right);
|
||||
height += scale * (thickness.Top + thickness.Bottom);
|
||||
|
||||
return { gsl::narrow_cast<float>(width), gsl::narrow_cast<float>(height) };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user