[PR #19402] Fix extra padding when tabs are outside the title bar #31824

Open
opened 2026-01-31 09:49:47 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/19402

State: open
Merged: No


Summary

  • reuse the tab visibility predicate across TerminalPage and TerminalWindow
  • tighten window sizing math so we only add chrome height when a tab row actually renders
  • add a local test covering TabRow visibility changes with the hidden-title-bar configuration

Rationale

  • fixes #19308 by eliminating the extra bottom padding that appeared when showTabsInTitlebar was false and only a single tab was open

Changes

  • expose TerminalPage::IsTabRowVisible() and update _UpdateTabView and _WindowSizeChanged to consult it
  • adjust the sizing fallback when tabs live in the title bar to avoid duplicating the system chrome
  • add TabRowVisibilityReflectsTabCount in the local TabTests suite as a regression guard

Fixes #19308

**Original Pull Request:** https://github.com/microsoft/terminal/pull/19402 **State:** open **Merged:** No --- ## Summary - reuse the tab visibility predicate across TerminalPage and TerminalWindow - tighten window sizing math so we only add chrome height when a tab row actually renders - add a local test covering TabRow visibility changes with the hidden-title-bar configuration ## Rationale - fixes #19308 by eliminating the extra bottom padding that appeared when `showTabsInTitlebar` was false and only a single tab was open ## Changes - expose `TerminalPage::IsTabRowVisible()` and update `_UpdateTabView` and `_WindowSizeChanged` to consult it - adjust the sizing fallback when tabs live in the title bar to avoid duplicating the system chrome - add `TabRowVisibilityReflectsTabCount` in the local TabTests suite as a regression guard Fixes #19308
claunia added the pull-request label 2026-01-31 09:49:47 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31824