[TIMOB-24245] Windows: listview.scrollToItem not working
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2017-01-28T04:33:48.000+0000 |
| Affected Version/s | Release 6.0.0 |
| Fix Version/s | Release 6.1.0 |
| Components | Windows |
| Labels | windows |
| Reporter | Mitch Starnes |
| Assignee | Kota Iguchi |
| Created | 2016-12-03T22:45:34.000+0000 |
| Updated | 2017-02-06T22:30:00.000+0000 |
Description
http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ListView-method-scrollToItem
LIstView method scrollToItem does not work on the Windows platform.
Create a Default Allow Project and use the attached index.js file. Build and run. Select the Scroll To Item list item. Works in iOS but does nothing on the Windows platform.
Attachments
| File | Date | Size |
|---|---|---|
| index.js | 2016-12-03T22:41:01.000+0000 | 34093 |
Hello [~mitch.starnes@bnsf.com] Thanks for your report. Would you send us a simple test case with your problem? We have tried your provided code and its not working for me. Thanks again.
[~mitch.starnes@bnsf.com], Sorry for your inconvenience. Finally we have reproduce this as an issue and I am sending this issue to engineering team. Hope we will update you soon. Thanks
https://github.com/appcelerator/titanium_mobile_windows/pull/934
Verified fixed with the test case provided in the description and with the test coed provided in https://github.com/appcelerator/titanium_mobile_windows/pull/934. Using
listview.scrollToItemI was able to verify it scrolled to right item. *Note: With the test case provided in https://github.com/appcelerator/titanium_mobile_windows/pull/934 i updated the code so it was easier to tell if it was scrolling to the right item. The code i changed was:*listView.scrollToItem(5 , 1);tolistView.scrollToItem(9 , 1);*Environment*