ScrollToAsync Not Working on Andrioid #14594
Labels
area-controls-scrollview
ScrollView
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
The Maui ScrollView method scrollView.ScrollToAsync(label, ScrollToPosition.Start, true) works on Windows but fails on Andoid.
I created a very simple demo here: https://github.com/robreno/ScrollToDemo
It is a simple two page app with a ScrollView with a VerticalStackLayout for this main container and then a series of Labels that have x:Name for scrolling to the Label name. When compiled and deployed on Windows the ScrollToAsync works as expected. On Android the app doesn't scroll to the Label name at all.
I have no idea is this a feature or bug ;-) But it seems this is pretty vanilla functionality that Maui framework should handle. Therefore I would call it a bug. But, if I am doing somethign wrong or need to perhaps write custom handlers and call native Android APIs I am willing to do so, but first need to know if this is a bug.
I tried both scrollView.ScrollToAsync(label, ScrollToPosition.Start, true) and scrollView.ScrollToAsync(labelX, labelY, false). Both these work on Windows, neither of them works on Android.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/robreno/ScrollToDemo
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android version 12
Did you find any workaround?
No
Relevant log output
The text was updated successfully, but these errors were encountered: