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

AutoSuggestBox Suggestion List flows inappropriately #9408

Open
FallenDeity opened this issue Mar 6, 2024 · 1 comment
Open

AutoSuggestBox Suggestion List flows inappropriately #9408

FallenDeity opened this issue Mar 6, 2024 · 1 comment
Labels
area-AutoSuggestBox bug Something isn't working team-Controls Issue for the Controls team

Comments

@FallenDeity
Copy link

FallenDeity commented Mar 6, 2024

Describe the bug

The options for the AutoSuggestBox suggestion list flows in an unusual manner, based on distance of box's top to window top and box's bottom to monitors bottom, depending on distance between these two it decides whether to flow upwards on downwards.
Issue arises when there is clearly space for the suggestion list to flow down and explicitly MaxSuggestionListHeight is set and its value lower than the distance previously mentioned.
To test this if we minimize the application and place it towards top of the monitor it results in suggestion list flowing down and vice versa regardless of application screen size and suggestion list height.
Current behavior results in inconsistent and weird ui especially when using suggest boxes in autocompletes for example in forms.

Steps to reproduce the bug

  1. Create any WinUi App
  2. Create a new page and an AutoSuggestBox
  3. Make sure to place it slightly below the center vertically

Expected behavior

Expected behavior is for the AutoSuggestBox to respect the MaxSuggestionListHeight value when computing the flow of the suggestion list items.

Screenshots

demo
test

NuGet package version

WinUI 3 - Windows App SDK 1.5.0: 1.5.240227000

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

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

github-actions bot commented Mar 6, 2024

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.

@codendone codendone added team-Controls Issue for the Controls team area-AutoSuggestBox and removed needs-triage Issue needs to be triaged by the area owners labels Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-AutoSuggestBox bug Something isn't working team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

2 participants