microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

Combobox Items' text is cut-off when scrolling down the page, but only at certain scaling values

Open bogdan-patraucean opened this issue 3 years ago • 6 comments

Describe the bug

Using a Combobox with multiple items, will display those items cut-off when you open the Combobox after you scrolled down the page that Combobox is on.

This issue can also be observed in the WinUI 3 Gallery, second example of the Combobox.

Steps to reproduce the bug

  1. Place a Combobox
  2. The page should have more content so it has a scroll that you can use to scroll down (to reproduce it in the WinUI 3 Gallery I expanded all example's code).
  3. Open the Combobox to see the items being cut-off.

Expected behavior

I would expect the items to be displayed entirely, not cut-off. Scrolling through the page should not affect how the items' text is displayed.

Screenshots

Combobox opened without scrolling the page down:

image

Combobox opened with the page scrolled down:

image

NuGet package version

WinUI 3 - Windows App SDK 1.8.3

Windows app type

  • [ ] UWP
  • [X] Win32

Device form factor

Desktop

Windows version

Windows Insider Build (xxxxx)

Additional context

Sometimes the bug can't be triggered in the XAML Gallery, but in my app it's always happening. Win UI 2.8 does not have this issue.

As an update, it looks like this is a scaling issue, it only happens at certain scaling levels, like for example:

  • 4K resolution, 150% scaling - text is cut
  • 4K resolution, 125% scaling - text is not cut

bogdan-patraucean avatar Oct 15 '22 19:10 bogdan-patraucean

I don't see what you mean. All I see is that the selected item stays in the same place as it is in the collapsed control.

Jay-o-Way avatar Oct 18 '22 12:10 Jay-o-Way

@Jay-o-Way look at each letter's bottom, is cut-off, the easiest one to observe is the letter g.

bogdan-patraucean avatar Oct 18 '22 12:10 bogdan-patraucean

Oh I see. 🙃

Jay-o-Way avatar Oct 18 '22 12:10 Jay-o-Way

UP. This issue should not be part of https://github.com/microsoft/microsoft-ui-xaml/discussions/8638.

bogdan-patraucean avatar Jul 13 '23 17:07 bogdan-patraucean

As an update, it looks like this is a scaling issue, it only happens at certain scaling levels, like for example:

  • 4K resolution, 150% scaling - text is cut-off
  • 4K resolution, 125% scaling - text is not cut-off

There is a similar behaviour with buttons as well, #9543

bogdan-patraucean avatar Apr 12 '24 21:04 bogdan-patraucean

Still reproducing in 1.8.3

bogdan-patraucean avatar Nov 15 '25 19:11 bogdan-patraucean