microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.34k stars 675 forks source link

CommandBar with FlowDirection="RightToLeft" breaks when opened #6385

Open SamChaps opened 2 years ago

SamChaps commented 2 years ago

Describe the bug

Creating a CommandBar with FlowDirection="RightToLeft" breaks when it gets opened via the dedicated Overflow Button. The CommandBar gets moved out of the window viewport. It gets difficult to close it and to continue interacting with it.

Steps to reproduce the bug

  1. Create a CommandBar with FlowDirection="RightToLeft"
  2. Add any number of SecondaryCommands
  3. Click on the Overflow Button to access the SecondaryCommands

Expected behavior

The CommandBar opening and closing should behave the same as FlowDirection="LeftToRight". The CommandBar shouldn't move or jump while opened.

Screenshots

Closed CommandBar with FlowDirection="RightToLeft" image

Opened CommandBar with FlowDirection="RightToLeft" image

NuGet package version

No response

Windows app type

Device form factor

Desktop

Windows version

Insider Build (xxxxx)

Additional context

No response

StephenLPeters commented 2 years ago

@SamChaps what versions of Winui are you seeing this in? System Xaml, Winui2 or Winui3?

ghost commented 2 years ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

SamChaps commented 2 years ago

@StephenLPeters I was using the WinUI 2.7.

StephenLPeters commented 2 years ago

@llongley known issue?

llongley commented 2 years ago

@StephenLPeters I don't believe I've seen these symptoms before, no.

tuggernuts commented 1 year ago

Hi, I just came across this issue. With flow RightToLeft, the menu disappears, seemingly to beyond right window edge.

Using WinUI 3 on Win32 packaged app, WindowsAppSdk 1.2.221109.1. VS 17.5.3.

I can post another sample app, but that seems redundant. Is this a recognized bug? If so, is it in the pipeline for a fix?