Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent a crash on resizing too small caused by the Titlebar #2118

Merged
merged 1 commit into from
Jul 26, 2019

Conversation

zadjii-msft
Copy link
Member

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

  Only set the MaxWidth of the TitlebarControl's Content when the value is
  positive. Any smaller will crash the app.
@zadjii-msft zadjii-msft added Issue-Bug It either shouldn't be doing this or needs an investigation. Area-User Interface Issues pertaining to the user interface of the Console or Terminal Product-Terminal The new Windows Terminal. labels Jul 26, 2019
@zadjii-msft zadjii-msft requested a review from a team July 26, 2019 13:58
@zadjii-msft zadjii-msft merged commit dd1f8a8 into master Jul 26, 2019
@zadjii-msft zadjii-msft deleted the dev/migrie/b/2045-titlebar-too-smol branch July 30, 2019 14:53
@ghost
Copy link

ghost commented Aug 3, 2019

🎉Windows Terminal Preview v0.3.2142.0 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-User Interface Issues pertaining to the user interface of the Console or Terminal Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Terminal crashes when the window width is too small
3 participants