[PR #2118] Prevent a crash on resizing too small caused by the Titlebar #24820

Closed
opened 2026-01-31 09:05:32 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: Yes


Summary of the Pull Request

Only set the MaxWidth of the TitlebarControl's Content when the value is
positive. Any smaller will crash the app.

PR Checklist

Validation Steps Performed

Opened the terminal with this fix and just went wild on the resize

**Original Pull Request:** https://github.com/microsoft/terminal/pull/2118 **State:** closed **Merged:** Yes --- <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request Only set the MaxWidth of the TitlebarControl's Content when the value is positive. Any smaller will crash the app. <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #2045 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [n/a] Tests added/passed * [x] I've discussed this with core contributors already. <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed Opened the terminal with this fix and just went wild on the resize
claunia added the pull-request label 2026-01-31 09:05:32 +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#24820