-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Android - CollectionView scroll wrong item when set animation is false #26191
Comments
We've found some similar issues:
If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.
|
This issue has been verified using Visual Studio 17.13 Preview 1 (9.0.10 & 8.0.100 & 8.0.92). Can repro this issue on Android platform. |
Hi, @hiepis It looks to me that it doesn't work only in a particular case when you do
|
@kubaflo I create 2 list. First list I set focus after call ScrollTo |
@hiepis Thanks for the feedback. If I'm following correctly, would doing what @kubaflo suggested work as a workaround in this situation? Seems like there may be some timing things going on when focusing before scrolling to the index without the animations. Is there a particular scenario you want this focus before the scroll? |
@tj-devel709 Remove event OnItem2Tapped and add scrolling to item when entry focused(ScrollToPosition is Start). If you touch on Entry, The Entry will focused first then scrolling. It's show bug like second collection |
I see this talks about .NET 8, could you also try .NET 9? Maybe its resolved in ther? |
Hi @hiepis. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version. You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
I have the same issue but also without the groups (verified in 9.0.12) Android only... CollectionViewBug.mp4 |
Description
ScrollTo(int index, int groupIndex = -1,ScrollToPosition position = ScrollToPosition.MakeVisible, bool animate = true) seem not working when animate = false
I add many entry in collectionview, the keyboard has strange behaviour.
Using .net8
Microsoft.Maui.Controls 8.0.100
Steps to Reproduce
collectionview_scroll.mp4
Link to public reproduction project repository
https://github.com/hiepis/CollectionView_scroll-.git
Version with bug
8.0.100 SR10
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: