Description
In iOS, if you call the scrollToItem function and you pass an "animation" parameter, you can indicate a 'position' (bottom, middle, none and top) which is the "position to scroll the selected cell to". The issue is that with the implementation as is right now, when scrolling to items in different sections (with several list items on them), the scroll stops at a point in which the section is sometimes positioned in the middle or bottom of the screen, making difficult to the user to tell when does the last section ends and when does the section that they scrolled to begins.
Video Example
[Video](
https://www.screencast.com/t/w161OuvI6WEB)
Feature Request
Parity in Windows
Sample Project
[Sample Code](
https://propelics.box.com/s/rdot2vvg8js18e0b0ow15vw4gc0jx3uh)
[~kiguchi] hey is there any update on this feature request?
[~vvazquezmontero] We need to investigate more on this but I'm guessing that this feature request is feasible. This ticket is most likely to be tackled in next sprint, likely to target for 6.2.0 SDK.
Thank you [~kiguchi] :-)
https://github.com/appcelerator/titanium_mobile_windows/pull/1042 [~vvazquezmontero] Just pushed a PR, which only implements
ListViewScrollPosition.TOP
andListViewScrollPosition.NONE
for scrollToItem. There's noMIDDLE
andBOTTOM
due to the platform API spec (FYI see comment in my PR). Do you thinkTOP
satisfies customer's needs?[~kiguchi] I will let them know the API limitation. This should hopefully be good.
I accidentally closed original PR last week. Pushing again: https://github.com/appcelerator/titanium_mobile_windows/pull/1063
[~kiguchi] Master has been merged, waiting for 6_2_X
6_2_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1068
Merged to 6_2_X
Verified fix in SDK Version 7.0.0.v20170815065413 and SDK Version: 6.2.0.v20170815130745 Test and other information can be found at: Master: https://github.com/appcelerator/titanium_mobile_windows/pull/1063 6_2_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1068
[~kiguchi] Hello kota, Customer wanted to know when the documentation here: http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ListView-method-scrollToItem http://docs.appcelerator.com/platform/latest/#!/api/ListViewAnimationProperties would be updated to reflect the change? best regards, Victor Montero
[~vvazquezmontero] Thanks for heads up. Pushing https://github.com/appcelerator/titanium_mobile_windows/pull/1095 https://github.com/appcelerator/titanium_mobile_windows/pull/1094 https://github.com/appcelerator/titanium_mobile/pull/9405 https://github.com/appcelerator/titanium_mobile/pull/9406
[~kiguchi] Hello Kota, when will the docs reflect the updates ?
We have a new entry for
Titanium.UI.Windows.ListViewScrollPosition
here: http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Windows.ListViewScrollPosition Then we should be ready to push this: https://github.com/appcelerator/titanium_mobile/pull/9406 now, Will be updated once it is reviewed and merged.