{ "id": "87509", "key": "TIMOB-7916", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "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": "2013-03-13T17:41:45.000+0000", "created": "2012-03-07T12:50:59.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-nfc", "triage" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "15590", "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": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:32:10.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": "Steps to reproduce:\r\n1. Run the following app.js on Android:\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\nvar tableView = Ti.UI.createTableView();\r\n\r\nvar data = [];\r\n\r\nfor (var c=0;c<4;c++)\r\n{\r\n\tvar label = Ti.UI.createLabel({\r\n\t\ttext:'Header ' + (c+1),\r\n\t\tcolor:'black',\r\n\t\twidth:'auto',\r\n\t\theight: 'auto',\r\n\t\tleft:4\r\n\t});\r\n\t\r\n\tvar pinkHeader = Ti.UI.createView({backgroundColor: 'pink', height: 40});\r\n\tpinkHeader.add(label);\r\n\t\r\n\tdata[c] = Ti.UI.createTableViewSection({\r\n\t\theaderView: pinkHeader\r\n\t});\r\n\tfor (var x=0;x<10;x++)\r\n\t{\r\n\t\tdata[c].add(Ti.UI.createTableViewRow({title:'Group '+(c+1)+', Row '+(x+1)}));\r\n\t}\r\n}\r\n\r\ntableView.data = data;\r\n\r\nwin.add(tableView);\r\nwin.open();\r\n{code}\r\n\r\n*Actual:* Notice pink headers are not incrementing properly. Displaying Header 1, Header 2, Header 1, Header 2\r\n*Expected:* Should display Header 1, Header 2, Header3, Header 4\r\n\r\n2. Scroll to the bottom of the table then back up a couple of times\r\n\r\n*Actual:* Headers displays Header 2, Header 1, Header 2, Header 1\r\n*Expected:* Headers should stay Header 1, Header 2, Header 3, Header 4\r\n\r\n*Note:* \r\n* The above code works fine on iOS using SDK build 2.0.0.v20120307114708\r\n* Was not able to test for regression in 1.8.2 because of bug TIMOB-3435", "attachment": [], "flagged": false, "summary": "Android: TableViewSection - For-loop counter does not increment properly when added to a TableViewSection", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK build: 2.0.0.v20120307114708\r\nRuntime: V8, Rhino\r\nTitanium Studio, build: 1.0.9.201202141208\r\nDevice: Nexus One (2.2.2)", "comment": { "comments": [ { "id": "227326", "author": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "body": "This is still an issue and it would be great if it could get some attention. Here is another reproduction case using a view instead of a label for the headerView.\r\n\r\n{code:javascript}\r\nvar data = [];\r\n\r\nfor (var i = 0; i < 50; i++) { \r\n if (i % 10 == 0) {\r\n \tvar headerView = Ti.UI.createView({ height: 50, backgroundColor: \"#808080\", className: \"headerView\" + i });\r\n var headerLabel = Ti.UI.createLabel({\r\n text: 'header ' + i,\r\n font: { fontSize: 24, color: \"#000\" },\r\n className: \"headerLabel\" + i\r\n })\r\n headerView.add(headerLabel);\r\n var section = Ti.UI.createTableViewSection({\r\n headerView: headerView,\r\n className: \"headerSection\" + i\r\n });\r\n data.push(section);\r\n }\r\n var row = Ti.UI.createTableViewRow({\r\n title: 'row ' + i\r\n });\r\n section.add(row);\r\n}\r\n\r\nvar table = Ti.UI.createTableView({\r\n data: data\r\n});\r\n\r\nvar window = Titanium.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n\r\nwindow.add(table);\r\nwindow.open();\r\n{code}", "updateAuthor": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-11-14T17:00:23.000+0000", "updated": "2012-11-14T17:00:23.000+0000" }, { "id": "242022", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The issue cannot reproduce with the release 3.0.2 and 3.1.0", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-13T17:41:45.000+0000", "updated": "2013-03-13T17:41:45.000+0000" }, { "id": "414461", "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-21T21:32:10.000+0000", "updated": "2017-03-21T21:32:10.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }