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

NumberBox's compact SpinButton can scroll off window

Open HO-COOH opened this issue 1 year ago • 4 comments

Describe the bug

As title suggest.

Steps to reproduce the bug

Click to open the SpinButton of a NumberBox, scroll the page.

Expected behavior

No response

Screenshots

numberbox2

NuGet package version

WinUI 3 - Windows App SDK 1.5.4: 1.5.240607001

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

HO-COOH avatar Jun 15 '24 07:06 HO-COOH

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.

github-actions[bot] avatar Jun 15 '24 07:06 github-actions[bot]

You can see here: https://github.com/microsoft/microsoft-ui-xaml/blob/98a60c8f30c84f297a175dd2884d54ecd1c8a4a9/controls/dev/NumberBox/NumberBox.xaml#L113

ShouldConstrainToRootBounds="False"

and let's see what happen for UWP/WinUI2 image

So I believe it's microsoft's intention.

Lightczx avatar Jun 17 '24 03:06 Lightczx

The ShouldConstrainToRootBounds="False" is more likely there to allow for acrylic effect.

lolametro avatar Jun 18 '24 17:06 lolametro

The ShouldConstrainToRootBounds="False" is more likely there to allow for acrylic effect.

ShouldConstrainToRootBounds="True" can also have in app acrylic, Set this to false in WinUI3 can allow user interact the popup by mouse over a custom titlebar which set by ExtentedContentIntoTitleBar, while ShouldConstrainToRootBounds="False" will casue the popup render below the titlebar and can't be accessed.

Lightczx avatar Jun 19 '24 01:06 Lightczx

NumberBox should use EffectiveViewportChanged to close the popup whenever the NumberBox itself moves around in the scroll view. That would prevent this problem.

kmahone avatar Jul 19 '24 21:07 kmahone