Skip to content

Commit

Permalink
Calculate initial height properly (microsoft#8584)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaihugo authored and mpela81 committed Jan 28, 2021
1 parent bcafed8 commit 422e587
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cascadia/TerminalApp/AppLogic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 422e587

Please sign in to comment.