Calculate initial height properly (#8584)

Closes #8527
This commit is contained in:
Kiminori Kaburagi 2020-12-16 05:29:08 +09:00 committed by GitHub
parent da6705c086
commit e943785e1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;