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

Fix to sizing issue when TabView is aligned left. #1744

Merged
merged 2 commits into from
Dec 11, 2019

Conversation

teaP
Copy link
Contributor

@teaP teaP commented Dec 10, 2019

Fixes #1581. Basically, the TabView would only get smaller, never larger. By updating the tab widths on Measure instead of SizeChanged, we can expand to use available space.

@msft-github-bot msft-github-bot added the needs-triage Issue needs to be triaged by the area owners label Dec 10, 2019
@teaP teaP requested a review from kmahone December 10, 2019 17:53
@kmahone
Copy link
Member

kmahone commented Dec 10, 2019

Can we add automated test coverage for this scenario to prevent regressions?

Copy link
Contributor

@StephenLPeters StephenLPeters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@StephenLPeters
Copy link
Contributor

Approved but should probably have a test as Keith mentioned.

@jevansaks jevansaks added area-TabView needs-cherrypicktorelease PR tagged for cherry-pick to the current release branch (but not yet picked) team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Dec 10, 2019
@teaP teaP merged commit 35577ba into master Dec 11, 2019
@teaP teaP deleted the user/teaP/TabViewSizingFix branch December 11, 2019 16:52
jevansaks pushed a commit that referenced this pull request Dec 11, 2019
Fix to sizing issue when TabView is aligned left. Added test.
@jevansaks jevansaks removed the needs-cherrypicktorelease PR tagged for cherry-pick to the current release branch (but not yet picked) label Dec 11, 2019
@msft-github-bot
Copy link
Collaborator

🎉Microsoft.UI.Xaml v2.4.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-TabView team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TabView's desired width doesn't increase when HorizontalAlignment isn't set to Stretch
5 participants