-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Feature requested] ListView do not ScrollTo a group when there is no child of this group. #8279
Comments
I'd like to pick this up. Currently trying to reproduce it and I also noticed that it doesn't Scroll if list item (first parameter) is passed as null (in-case I'd like to scroll to a group only). For e.g.
@jsuarezruiz @jfversluis Is it expected behavior or should I fix this too? Thanks! |
Makes sense to me to scroll to the group whenever the item is not found but the group is. I guess the cases for the different parameter values would be:
Right? |
We are facing the same issue in iPad-iOS 12.4.1. with grouped listView. We have used a grouped listview, when we try to expand and collapse an item in bottom of the screen scroll position is changing to top and unable to see the selected item. Listview.scroll is not working in grouped listview if it don't have items. |
There is a PR for the Android side of things @Rajeswari06 if you're brave enough you could add the iOS implementation? 😉 |
@Rajeswari06 When I fixed for Android, I had seen the existing implementation for iOS too as it also uses the
You can refer the PR #8310 for more details. I couldn't complete the iOS as I don't have mac/iOS but if you'd like to pick this up, I'm happy to help should you have any further questions. |
… ixes #8279 * Fixed - 8279 - [Enhancement] ListView ScrollTo with empty groups * Added UI Tests for 8279 * Update Issue8279.cs * Fixed build error - finally * Added reset button to fix UI test * Added meaningful local variables for better code readability * Added meaningful names to local variables and removed unused condition Co-authored-by: Durgesh Khandal <durgesh.khandal@southernphone.net.au>
closed by #8310 |
Description
At present, we must special a item object as the first parameter of method : ScrollTo .
https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.listview.scrollto?view=xamarin-forms
When a group of listview has no child, the function
ScrollTo
cannot scroll to the corresponding group.Many customers think it is not reasonable, and it should have this feature.
Expected Behavior
When a group of listview has no child, the function
ScrollTo
should scroll to the corresponding group.Actual Behavior
When a group of listview has no child, the function
ScrollTo
cannot scroll to the corresponding group.Basic Information
The text was updated successfully, but these errors were encountered: