Skip to content

Commit e943785

Browse files
authored
Calculate initial height properly (#8584)
Closes #8527
1 parent da6705c commit e943785

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cascadia/TerminalApp/AppLogic.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,10 @@ namespace winrt::TerminalApp::implementation
591591
auto tabControl = TabRowControl();
592592
tabControl.Measure({ SHRT_MAX, SHRT_MAX });
593593

594-
// For whatever reason, there's about 6px of unaccounted-for space
595-
// in the application. I couldn't tell you where these 6px are
594+
// For whatever reason, there's about 10px of unaccounted-for space
595+
// in the application. I couldn't tell you where these 10px are
596596
// coming from, but they need to be included in this math.
597-
proposedSize.Width += (tabControl.DesiredSize().Height + 6) * scale;
597+
proposedSize.Height += (tabControl.DesiredSize().Height + 10) * scale;
598598
}
599599

600600
return proposedSize;

0 commit comments

Comments
 (0)