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

AutoSuggest box: Suggestion list doesn't reset scroll position when opening upwards #10202

Open
Joost-Jens-Luminis opened this issue Nov 26, 2024 · 1 comment
Labels
area-AutoSuggestBox bug Something isn't working

Comments

@Joost-Jens-Luminis
Copy link

Describe the bug

When the suggestion list of an AutoSuggest box opens normally, it resets the scroll view so the first element is in view.
When the suggestion list opens upwards (due to not enough space below the element), it does not reset the scroll view to the first element in view.

This can be replicated in the WinUI 3 gallery.

Steps to reproduce the bug

  1. In the WinUI 3 gallery, go to the AutoSuggestBox
  2. Drag the Window to the bottom of the screen so the AutoSuggestBox is just above the bottom of the screen
  3. Type a character (for example "a")
  4. The Suggestion list opens up
  5. Scroll a bit in the Suggestion list
  6. Close the suggesiton list (for example by pressing enter)
  7. Remove the typed character, the suggestion list opens up again but not scrolled to the start of the list.
  8. Type another character, the suggestion list is still not scrolled to the start of the list

Expected behavior

The suggestion list is scrolled to the start of the list so the first item in the list is visible.

Screenshots

Image

NuGet package version

WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003

Windows version

Windows 11 (23H2): Build 22631

Additional context

No response

@Joost-Jens-Luminis Joost-Jens-Luminis added the bug Something isn't working label Nov 26, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Nov 26, 2024
Copy link

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:

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

@marcelwgn marcelwgn added area-AutoSuggestBox and removed needs-triage Issue needs to be triaged by the area owners labels Nov 28, 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
Projects
None yet
Development

No branches or pull requests

2 participants