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

NavigationView top navigation overflow button disappearing #6626

Open
1 of 2 tasks
wbokkers opened this issue Jan 19, 2022 · 6 comments
Open
1 of 2 tasks

NavigationView top navigation overflow button disappearing #6626

wbokkers opened this issue Jan 19, 2022 · 6 comments
Labels
area-NavigationView NavView control bug Something isn't working product-winui3 WinUI 3 issues team-Controls Issue for the Controls team

Comments

@wbokkers
Copy link

wbokkers commented Jan 19, 2022

Describe the bug

When a selection is made from the overflow menu in a top navigation scenario, sometimes the overflow button disappears while not all items are listed in the top navigation.

Steps to reproduce the bug

  1. Create a new WinUI3 project (using Windows App SDK 1.0)
  2. Use this XAML:
<NavigationView MaxWidth="240" Height="300"  Background="LightGray"
                  IsBackButtonVisible="Collapsed" IsSettingsVisible="False"
                  PaneDisplayMode="Top">
      <NavigationView.MenuItems>
          <NavigationViewItem Content="AA" />
          <NavigationViewItem Content="BBBBBBB" />
          <NavigationViewItem Content="CCCCCCCCCCCCCCC" />
      </NavigationView.MenuItems>
  </NavigationView>
  1. Start the app
    image
  2. Select CCCCCCCCCCCCCCC from the overflow menu:
    image
  3. The overflow button disappears and the other navigation items can not longer be selected:
    image

Expected behavior

The overflow button should always be visible when not all navigation items are visible on the top

NuGet package version

WinUI 3 - Windows App SDK 1.0

Windows app type

  • UWP
  • Win32

Device form factor

Desktop

Windows version

Windows 11

Additional context

No response

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Jan 19, 2022
@gabbybilka gabbybilka added the product-winui3 WinUI 3 issues label Feb 8, 2022
@StephenLPeters
Copy link
Contributor

@ojhad Is what is happening here that the selected item is always shown in the top bar, but this item is so large that it is preventing the the overflow menu from showing?

@StephenLPeters StephenLPeters added area-NavigationView NavView control team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Mar 3, 2022
@KWodarczyk
Copy link

why was this closed ?

@gabbybilka
Copy link
Member

Followed up with @ranjeshj about this issue. As @StephenLPeters noted, it looks like the issue is that the space available in the horizontal NavView is less than a single item can be shown in. To work around this, you can provide more horizontal space in the NavView or reduce the size of the content in the NavViewItem so that at least one item and the overflow button can fit.

The platform solution would be to change the behavior of the NavView to clip the NavViewItem content to ensure the overflow button appears in the space allotted. At this time, we have no plans to make that change.

@github-actions
Copy link

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@KWodarczyk
Copy link

Comment

@pme442
Copy link

pme442 commented Oct 29, 2024

I am also facing this issue. Any workarounds?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-NavigationView NavView control bug Something isn't working product-winui3 WinUI 3 issues team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

6 participants