From e943785e1a59d39bf0c69e8716782b3dbcbcc395 Mon Sep 17 00:00:00 2001 From: Kiminori Kaburagi Date: Wed, 16 Dec 2020 05:29:08 +0900 Subject: [PATCH] Calculate initial height properly (#8584) Closes #8527 --- src/cascadia/TerminalApp/AppLogic.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cascadia/TerminalApp/AppLogic.cpp b/src/cascadia/TerminalApp/AppLogic.cpp index 1f6c1e7a227..f052341b53f 100644 --- a/src/cascadia/TerminalApp/AppLogic.cpp +++ b/src/cascadia/TerminalApp/AppLogic.cpp @@ -591,10 +591,10 @@ namespace winrt::TerminalApp::implementation auto tabControl = TabRowControl(); tabControl.Measure({ SHRT_MAX, SHRT_MAX }); - // For whatever reason, there's about 6px of unaccounted-for space - // in the application. I couldn't tell you where these 6px are + // For whatever reason, there's about 10px of unaccounted-for space + // in the application. I couldn't tell you where these 10px are // coming from, but they need to be included in this math. - proposedSize.Width += (tabControl.DesiredSize().Height + 6) * scale; + proposedSize.Height += (tabControl.DesiredSize().Height + 10) * scale; } return proposedSize;