{ "id": "98967", "key": "AC-2589", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-09-05T12:06:01.000+0000", "created": "2012-08-09T14:15:45.000+0000", "labels": [ "2.0.1", "2.1.1GA", "android", "tableview", "tableviewsection" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:40.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When updating a tableView with tableViewSections at an interval, the headerView array seems to be inverted. This is visible by running the example. It works fine on iOS but not on Android.\r\n\r\n{code:title=app.js|border=solid}\r\n\r\nvar window = Ti.UI.createWindow({backgroundColor: 'white'});\r\nvar tableView = Ti.UI.createTableView();\r\n\r\nvar label1 = Ti.UI.createLabel({text: 'test1'});\r\nvar label2 = Ti.UI.createLabel({text: 'test2'});\r\nvar label3 = Ti.UI.createLabel({text: 'test3'});\r\nvar label4 = Ti.UI.createLabel({text: 'test4'});\r\n\r\nvar tableViewSection1 = Ti.UI.createTableViewSection({headerView:label1});\r\nvar tableViewSection2 = Ti.UI.createTableViewSection({headerView:label2});\r\nvar tableViewSection3 = Ti.UI.createTableViewSection({headerView:label3});\r\nvar tableViewSection4 = Ti.UI.createTableViewSection({headerView:label4});\r\n\r\nvar tableViewRow1 = Ti.UI.createTableViewRow({title: 'test1'});\r\nvar tableViewRow2 = Ti.UI.createTableViewRow({title: 'test2'});\r\nvar tableViewRow3 = Ti.UI.createTableViewRow({title: 'test3'});\r\nvar tableViewRow4 = Ti.UI.createTableViewRow({title: 'test4'});\r\n\r\ntableViewSection1.add(tableViewRow1);\r\ntableViewSection2.add(tableViewRow2);\r\ntableViewSection3.add(tableViewRow3);\r\ntableViewSection4.add(tableViewRow4);\r\n\r\ntableView.setData([tableViewSection1, tableViewSection2, tableViewSection3, tableViewSection4]);\r\n\r\nwindow.add(tableView);\r\n\r\nvar interval = setInterval(function()\r\n{\r\n\ttableView.setData([tableViewSection1, tableViewSection2, tableViewSection3, tableViewSection4]);\r\n}, 1000);\r\n\r\nwindow.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "TableViewSection viewHeader not ordered right on repeated setData", "creator": { "name": "janhelleman", "key": "janhelleman", "displayName": "Jan Helleman", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "janhelleman", "key": "janhelleman", "displayName": "Jan Helleman", "active": true, "timeZone": "Europe/Berlin" }, "environment": "android 2.2+, mobile SDK 2.0.1GA up to 2.2.0.v2012080912938", "comment": { "comments": [ { "id": "217648", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-05T12:06:01.000+0000", "updated": "2012-09-05T12:06:01.000+0000" }, { "id": "281018", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "DUP issue. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-24T22:29:59.000+0000", "updated": "2013-11-24T22:29:59.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }