Initial window height calculation regression #4849

Open
opened 2026-01-30 23:58:06 +00:00 by claunia · 0 comments
Owner

Originally created by @mcpiroman on GitHub (Nov 7, 2019).

Initial window height is off by titlebar height. This got regressed by #3394 in:

357e835f5d/src/cascadia/WindowsTerminal/AppHost.cpp (L197-L210)

That also blocks #3181 which relys on this size calculation.

Steps to reproduce

  1. Set fontSize to 50
  2. Set initialRows to 2
  3. Launch terminal

Expected behavior

2 rows should fit in the window

Actual behavior

About 1.5 of a row fits.

cc @greg904.

Originally created by @mcpiroman on GitHub (Nov 7, 2019). Initial window height is off by titlebar height. This got regressed by #3394 in: https://github.com/microsoft/terminal/blob/357e835f5d37492812e33eac1dd995232c19de63/src/cascadia/WindowsTerminal/AppHost.cpp#L197-L210 That also blocks #3181 which relys on this size calculation. # Steps to reproduce 1. Set `fontSize` to 50 2. Set `initialRows` to 2 3. Launch terminal # Expected behavior 2 rows should fit in the window # Actual behavior About 1.5 of a row fits. cc @greg904.
claunia added the Issue-BugResolution-DuplicateProduct-TerminalArea-UserInterface labels 2026-01-30 23:58:06 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4849