{ "id": "62472", "key": "TIMOB-1840", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-07-20T13:27:07.000+0000", "created": "2011-04-15T03:03:40.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "defect", "header", "ios", "ipad", "section", "tableview" ], "versions": [], "issuelinks": [ { "id": "19045", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T22:18:34.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": "{html}

When a table view has sections and has been scrolled the wrong\r\nsection header is shown after an orientation change happens. If the\r\ntable view is a grouped tableview, this does not happen.

\r\n

Code below:
\r\nvar win = Titanium.UI.currentWindow

\r\n

var inputData = [

\r\n
\r\n{title:'row 1', header:'Header 1'},\r\n{title:'row 2'},\r\n{title:'row 3'},\r\n{title:'row 4'},\r\n{title:'row 5'},\r\n{title:'row 6'},\r\n{title:'row 7', header:'Header 2'},\r\n{title:'row 8'},\r\n{title:'row 9'},\r\n{title:'row 10'},\r\n{title:'row 11'},\r\n{title:'row 12'},\r\n{title:'row 13'},\r\n{title:'row 14'},\r\n{title:'row 15'},\r\n{title:'row 16', header:'Header 3'},\r\n{title:'row 17'},\r\n{title:'row 18'},\r\n{title:'row 19'},\r\n{title:'row 20'},\r\n{title:'row 21'},\r\n{title:'row 22'},\r\n{title:'row 23'},\r\n{title:'row 24'},\r\n{title:'row 25', header:'Header 4'},\r\n{title:'row 26'},\r\n{title:'row 27'},\r\n{title:'row 28'},\r\n{title:'row 29'},\r\n{title:'row 30'},\r\n{title:'row 31'},\r\n{title:'row 32'},\r\n{title:'row 33'}\r\n
\r\n

]; var tableView = Titanium.UI.createTableView({

\r\n
\r\ndata:inputData\r\n
\r\n

}); win.add(tableView);

{html}", "attachment": [], "flagged": false, "summary": "iOS: Tableview section header incorrect on orientation change on ipad", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "208791", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Does not reproduce with release 2.1.0.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-20T23:41:42.000+0000", "updated": "2012-07-20T23:41:42.000+0000" }, { "id": "410804", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T22:18:34.000+0000", "updated": "2017-03-09T22:18:34.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }