{ "id": "117686", "key": "TIMOB-14691", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-09-03T05:53:42.000+0000", "created": "2013-07-28T19:40:14.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "iOS", "listview", "qe-manualtest", "scrollToItem", "supportTeam" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "30463", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "116165", "key": "TIMOB-14290", "fields": { "summary": "iOS: ListView: scrollToItem lags with large lists", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-09-10T22:59:24.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Problem*\r\nOn iOS the ListView will not be properly displayed or scrolled. On Android (tested 4.1.2 phone) works as expected.\r\n\r\n*Test case*\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\nvar listView = Ti.UI.createListView({\r\n\ttop : '150dp'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttop : '45dp',\r\n\twidth : '300dp',\r\n\theight : '40dp',\r\n\ttitle : 'iOS will mess up'\r\n});\r\nbtn.addEventListener('click', function() {\r\n\tlistView.removeAllChildren();\r\n\tvar fruitSection = Ti.UI.createListSection({\r\n\t\theaderTitle : 'Fruits'\r\n\t});\r\n\tvar sections = [];\r\n\tfruitSection.setItems([]);\r\n\tsections.push(fruitSection);\r\n\tlistView.sections = sections;\r\n\r\n\tfor (var i = 0; i < 100; i++) {// 100 to show it works on Android. But even 1 loop will break iOS\r\n\t\tlistView.sections[0].appendItems([{\r\n\t\t\tproperties : {\r\n\t\t\t\ttitle : 'Apple ' + i\r\n\t\t\t}\r\n\t\t}]);\r\n\t\t// listView.sections[0].insertItemsAt(i, [{properties: { title: 'Apple ' + i}}]); // this doesn't work either\r\n\t\tlistView.scrollToItem(0, i);\r\n\t\t// this line causes the bug - comment it out to try\r\n\t}\r\n\t//listView.scrollToItem(0, 99); // if you try the scroll at the end, comment out the previous - *usually* buggy, not always\r\n\tTi.API.info('finished');\r\n\r\n});\r\nwin.add(btn);\r\nwin.add(listView);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: ListView scrollToItem broken", "creator": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "subtasks": [], "reporter": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "environment": "3.1.1.GA, iOS 6.1 simulator", "comment": { "comments": [ { "id": "263571", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2013-07-28T19:42:52.000+0000", "updated": "2013-07-28T19:42:52.000+0000" }, { "id": "263783", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on iOS 6 simulator and iPhone 4 device with Ti SDK 3.1.1 GA and latest 3.2 CI.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-29T22:17:50.000+0000", "updated": "2013-07-29T22:17:50.000+0000" }, { "id": "321516", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bug exist with TiSDK 3.1.1.GA and 3.2.0 but cannot reproduce with 3.4.0 GA \r\nAppcelerator Studio, build: 3.3.0.201407111535 \r\niOS 6.1", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-03T05:52:46.000+0000", "updated": "2014-09-03T05:52:46.000+0000" }, { "id": "321600", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "With 3.4.0 GA? You mean 3.3.0.GA?", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2014-09-03T16:21:21.000+0000", "updated": "2014-09-03T16:21:34.000+0000" }, { "id": "321604", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No, we are asking people to confirm issues with the latest master release to see if they have been fixed. Please download the latest 3.4.0 build from builds.appcelerator.com and see if it is fixed for you as well.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-03T16:40:24.000+0000", "updated": "2014-09-03T16:40:24.000+0000" }, { "id": "321619", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment tested\r\nMac osx 10.9.4 Maverics\r\nAppcelerator Studio, build: 3.4.0.201409021758\r\nTitanium SDK, build: 3.4.0.v20140829184521\r\nacs@1.0.16\r\nalloy@1.5.0-dev (git://github.com/appcelerator/alloy.git#28af71f2e10ca61929443277176323ec8746ee14)\r\ninstall@0.1.7\r\nnpm@1.4.23\r\nsudo@1.0.3\r\ntitanium@3.4.0-dev (git://github.com/appcelerator/titanium.git#be6d7a682c881e42246a2d31caac931b5f694024)\r\ntitanium-code-processor@1.1.1\r\nXcode6-Beta7\r\niOS 8.0 (iPhone5s) and iOS 7.0.3(iPhone5) Simulators\r\n\r\nListView displayed properly, scrollToItem works as expected. \r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-03T17:20:24.000+0000", "updated": "2014-09-03T17:20:24.000+0000" }, { "id": "322938", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with\r\nMac osx 10.9.4 Maverics\r\nAppcelerator Studio, build: 3.4.0.201409081810\r\nTitanium SDK, build: 3.4.0.v20140909222515\r\nacs@1.0.16\r\nalloy 1.5.0-rc\r\ninstall@0.1.7\r\nnpm@1.4.23\r\nsudo@1.0.3\r\ntitanium 3.4.0-rc\r\ntitanium-code-processor@1.1.1\r\nXcode6-Beta7\r\nDevice: iPhone 5S iOS 8.0\r\n\r\nWorks as expected.", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-10T22:59:24.000+0000", "updated": "2014-09-10T22:59:24.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }