microsoft / microsoft-ui-xaml

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

NavigationView and CommandBar flyout menu get clipped when dpi changed #9512

Open HO-COOH opened 5 months ago

HO-COOH commented 5 months ago

Describe the bug

The flyout menu window does not seem to correctly calculate the size when dragging around monitors that has different dpis.

Steps to reproduce the bug

  1. Type something in the winui3 gallery search box so that it shows the suggest list
  2. Drag the window between a monitor of 200% scaling and 100% scaling
  3. See the flyout get clipped.

Also reproducible for CommandBar

Expected behavior

Either the menu get dismissed like a normal MenuFlyout, or should be scaled correctly.

Screenshots

demo2

demo3

NuGet package version

WinUI 3 - Windows App SDK 1.5.1: 1.5.240311000

Windows version

Windows 10 (1809): Build 17763

Additional context

No response

github-actions[bot] commented 5 months ago

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!

Open similar issues:

Closed similar issues:

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