{ "id": "97787", "key": "TIMOB-10087", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-10-09T20:55:05.000+0000", "created": "2012-07-23T11:34:27.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "qe-and070112" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [ { "id": "19095", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "64067", "key": "TIMOB-3435", "fields": { "summary": "TableViewSection.headerView broken on Android", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T22:08:26.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Description:\r\nDuring testing TableView module I noticed, that headers appear with incorrect labels: Header 1 for Group 1, Header 2 for Group 2, Header 1 for Group 3 and Header 2 for Group 4. If we run the code with uncommented part of code:\r\n{code}\r\nfor (var x=0;x<10;x++)\r\n {\r\n\tdata[c].add(Ti.UI.createTableViewRow({title:'Group '+(c+1)+', Row '+(x+1)}));\r\n }\r\n\t\r\n }\r\n{code},\r\nheaders appear with correct labels.\r\n\r\nThis is not a regression, the behavior occurs as far as 2.0.2 at least.\r\n\r\nSteps to reproduce:\r\n1. Run the following code:\r\n{code}\r\n\t\tvar _window = Ti.UI.createWindow({backgroundColor: \"white\"});\r\n\r\n\t\tvar tableView = Ti.UI.createTableView();\r\n\t\t\r\n\t\tvar data = [];\r\n\t\t\r\n\t\tfor (var c=0;c<4;c++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tvar label = Ti.UI.createLabel({\r\n\t\t\t\ttext:'Header ' + (c+1),\r\n\t\t\t\tcolor:'black',\r\n\t\t\t\twidth:'auto',\r\n\t\t\t\theight: 'auto',\r\n\t\t\t\tleft:4\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tvar pinkHeader = Ti.UI.createView({backgroundColor: 'pink', height: 40});\r\n\t\t\tpinkHeader.add(label);\r\n\t\t\t\r\n\t\t\tdata[c] = Ti.UI.createTableViewSection({\r\n\t\t\t\theaderView: pinkHeader\r\n\t\t\t\t\r\n\t\t\t});\r\n\r\n\t\t\t\r\n\t\t\tfor (var x=0;x<10;x++)\r\n\t\t\t{\r\n\t\t\t\tdata[c].add(Ti.UI.createTableViewRow({title:'Group '+(c+1)+', Row '+(x+1)}));\r\n\t\t\t}\r\n\t\r\n\t\t}\r\n\t\t\r\n\t\ttableView.data = data;\r\n\t\t\r\n\t\t_window.add(tableView);\r\n\t\t\r\n\t\t_window.open();\r\n{code}\r\n2. Scroll down to see all headers.\r\n\r\nActual result:\r\nHeaders appear with incorrect labels\r\n\r\nExpected result:\r\nHeaders should appear with correct labels", "attachment": [], "flagged": false, "summary": "Android: TableView - Headers appear with incorrect labels on Android", "creator": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with:\r\nTitanium Studio, build: 2.1.1.201207171343\r\nTitanium SDK: 2.1.1.v20120718121609\r\nDevices: Samsung Galaxy tab 3.2; Android Emulator", "comment": { "comments": [ { "id": "219716", "author": { "name": "raybelisle", "key": "raybelisle", "displayName": "Ray Belisle", "active": true, "timeZone": "America/Edmonton" }, "body": "This is still broken in 2.1.3 RC just released yesterday... Need a fix please!", "updateAuthor": { "name": "raybelisle", "key": "raybelisle", "displayName": "Ray Belisle", "active": true, "timeZone": "America/Edmonton" }, "created": "2012-09-19T09:15:15.000+0000", "updated": "2012-09-19T09:15:15.000+0000" }, { "id": "219723", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "2.1.3 is an update for iOS 6 / iPhone 5, so I wouldn't expect any non iOS 6 bugs to be fixed, even on the iOS side.", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2012-09-19T09:36:06.000+0000", "updated": "2012-09-19T09:36:06.000+0000" }, { "id": "219724", "author": { "name": "raybelisle", "key": "raybelisle", "displayName": "Ray Belisle", "active": true, "timeZone": "America/Edmonton" }, "body": "My comment wasn't to expect a fix, just saying that this has been a problem for revs since 1.7.x (where I first see some people reporting the problem). Just seems to be lingering and I wanted Devs to know that even with the latest version, it is still a problem.", "updateAuthor": { "name": "raybelisle", "key": "raybelisle", "displayName": "Ray Belisle", "active": true, "timeZone": "America/Edmonton" }, "created": "2012-09-19T09:39:55.000+0000", "updated": "2012-09-19T09:39:55.000+0000" }, { "id": "221061", "author": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can't reproduce this with the latest pending pull requests for tableview.\nThese are the two pending requests:\n\nhttps://github.com/appcelerator/titanium_mobile/pull/3033\nhttps://github.com/appcelerator/titanium_mobile/pull/3043\n\nAlso, this is related to TIMOB-10238\n\n", "updateAuthor": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-26T18:57:11.000+0000", "updated": "2012-09-26T18:57:11.000+0000" }, { "id": "222766", "author": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of [TIMOB-10458]", "updateAuthor": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-09T20:55:06.000+0000", "updated": "2012-10-09T20:55:06.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }