{ "id": "121096", "key": "TIMOB-15459", "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-04T06:49:54.000+0000", "created": "2013-10-11T14:19:26.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-automatedtest", "qe-closed-3.4.0", "supportTeam" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-01-09T17:22:33.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": "h2. Problem description\r\nIf scrollToItem has been called when there are no elements in the ListView, it is then impossible to add elements to the view.\r\n\r\nh2. Steps to reproduce\r\nThe following code shows the issue; after 2s an element is added, but it does not work. Removing the scrollToItem line fixes the issue.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\nvar listView = Ti.UI.createListView();\r\n\r\nvar section = Ti.UI.createListSection({\r\n\theaderTitle : 'Fruits'\r\n});\r\nlistView.sections = [section];\r\nwin.add(listView);\r\nwin.open();\r\n\r\nsetTimeout(function() {\r\n\tTi.API.info(\"Adding test1\");\r\n\tlistView.scrollToItem(0, 0);\r\n\tsection.appendItems([{\r\n\t\tproperties : {\r\n\t\t\ttitle : \"test1\"\r\n\t\t}\r\n\t}]);\r\n}, 2000);\r\n{code}", "attachment": [ { "id": "45799", "filename": "iOS Simulator Screen shot Feb 11, 2014 4.16.48 PM.png", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2014-02-11T10:28:50.000+0000", "size": 8635, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Impossible to add elements to ListView if scrollToItem has been called when there were no elements in it", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "SDK 3.1.3, 3.2.0, 3.2.1\r\niOS 7", "comment": { "comments": [ { "id": "321735", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue exist with SDK 3.1.3, 3.2.0 but can't reproduce with SDK 3.4.0\r\nTitanium Command-Line Interface, \r\nCLI version 3.3.0, \r\nTitanium SDK version 3.4.0.GA \r\niOS SDK: 7 \r\niOS iPhone Simulator: 7", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-04T06:49:20.000+0000", "updated": "2014-09-04T06:49:36.000+0000" }, { "id": "323043", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with environment:\r\n\r\nAppcelerator Studio:3.4.0.201409101253\r\nSdk:3.4.0.v20140910235714\r\nalloy:1.5.0-rc\r\ntitanium:3.4.0-rc\r\ntitanium-code-processor:1.1.1\r\nacs:1.0.16\r\nnpm:1.3.2\r\nOS:Maverick(10.9.4)\r\nxcode: Xcode6GMSeed \r\nDevice:iPhone5c(v8.0)\r\n\r\nafter 2s an element is added to ListView.\r\nWorking as expected.\r\nHence closing the issue", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-11T10:52:40.000+0000", "updated": "2014-09-11T10:52:40.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }