mirror of
https://github.com/microsoft/terminal.git
synced 2026-02-04 05:35:20 +00:00
Calculate initial height properly (#8584)
Closes #8527
(cherry picked from commit e943785e1a)
This commit is contained in:
committed by
Dustin Howett
parent
5f29f7603d
commit
9e9c0bea83
@@ -583,10 +583,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;
|
||||
|
||||
Reference in New Issue
Block a user