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 regression in PR #1012 #1015

Merged
merged 2 commits into from
Mar 25, 2024
Merged

Conversation

tmijail
Copy link
Contributor

@tmijail tmijail commented Mar 24, 2024

As @koal44 pointed out, #1012 introduced a bug which made the app crash when using FluentLeft navigation because updating the visual state tries to animate a width to or from OpenPaneLength=NaN. Sorry about that.

To avoid this, don't try to change the visual state for navigation view modes that don't have an open and a compact state.

Pull request type

Please check the type of change your PR introduces:

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current behavior?

App crashes when using FluentLeft navigation mode, or at least it did before dd83b6e

Issue Number: Comment in PR #1012

What is the new behavior?

Don't try to change the visual state for FluentLeft, Top or Bottom navigation view modes

Other information

As @koal44 pointed out, lepoco#1012 introduced a bug which made the app crash when using FluentLeft navigation because updating the visual state tries to animate a width to or from OpenPaneLength=NaN.

To avoid this, don't try to change the visual state for navigation view modes that don't have an open and a compact state.
@github-actions github-actions bot added controls Changes to the appearance or logic of custom controls. PR Pull request navigation Changes to navigation related controls. dotnet labels Mar 24, 2024
@pomianowski pomianowski merged commit d8c1f12 into lepoco:development Mar 25, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
controls Changes to the appearance or logic of custom controls. dotnet navigation Changes to navigation related controls. PR Pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants