-
Notifications
You must be signed in to change notification settings - Fork 712
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
NavigationView incorrectly sizing items as compact on launch #2810
Conversation
Should we add a test for this? |
I don't think we have a consistent repro which would make effectively testing it hard. @ojhad |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Not having a consistent repro bundled with the fact that this scenario is only hit in a specific configuration upon app launch makes the test setup for this require a lot more work than normal, which is why I left out writing a test for this for now. |
Fair enough, if the test would require a lot of work or wouldn't be reliable anyway, I guess in this case a test won't be necessary or helpful. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
if (IsPaneOpen() && | ||
DisplayMode() != winrt::NavigationViewDisplayMode::Expanded && | ||
!DoesNavigationViewItemHaveChildren(selectedContainer) && | ||
!m_shouldIgnoreNextSelectionChange) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this an issue with selection model raising events when it should not be ? If so, lets file a bug for it.
🎉 Handy links: |
Description
NavigationView was launching into expanded mode while the items were being sized as compact.
This is happening due to the pane being closed and opened during the set up. This should not be happening while internal logic is setting up the correct state. Used an existing flag to ensure this.
Motivation and Context
Fixes #2635
How Has This Been Tested?
Manual testing