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

CommandBar is always displaying the "see more" button when text scaling is on #10117

Open
vgromfeld opened this issue Oct 29, 2024 · 1 comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@vgromfeld
Copy link

Describe the bug

When text scaling is on, the CommandBar control is always displaying its "see more" button whereas there is no content in the overflow menu.

Steps to reproduce the bug

  1. Add the following XAML to an UWP application:
<CommandBar
  VerticalContentAlignment="Center"
  DefaultLabelPosition="Right"
  OverflowButtonVisibility="Auto">
  <CommandBar.Content>
    <Button Content="Do something" Style="{StaticResource AccentButtonStyle}" />
  </CommandBar.Content>

  <AppBarButton Icon="Accept" Label="Action 1 with a long name" />
  <AppBarButton Icon="Remove" Label="Action 2 with a long name" />
</CommandBar>
  1. From Windows' settings, set text scaling to 200%

  2. Run the application

  3. Ensure the app window is large enough to display all the buttons.

  4. The "see more" button is visible whereas there is nothing in the overflow menu
    CommandBar displaying its overflow button when text scaling is on

  5. Clicking on the button increases the command bar's height.
    CommandBar displaying its overflow button when text scaling is on

Expected behavior

The CommandBar control should keep the same behavior as when text scaling is disabled.
The "see more" button should only be displayed when there are items in overflow or secondary commands.

The same command bar with text scaling off:
CommandBar with text scaling off

Screenshots

No response

NuGet package version

WinUI 2 - Microsoft.UI.Xaml 2.8.2

Windows version

Windows 11 (22H2): Build 22621

Additional context

Could be related to #9299

@vgromfeld vgromfeld added the bug Something isn't working label Oct 29, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Oct 29, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

1 participant