Skip to content

Fix regression in PR #1012#1015

Merged
pomianowski merged 2 commits intolepoco:developmentfrom
tmijail:IsPaneOpenFixFix
Mar 25, 2024
Merged

Fix regression in PR #1012#1015
pomianowski merged 2 commits intolepoco:developmentfrom
tmijail:IsPaneOpenFixFix

Conversation

@tmijail
Copy link
Copy Markdown
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.
@tmijail tmijail requested a review from pomianowski as a code owner March 24, 2024 21:18
@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
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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.

2 participants