{ "id": "121962", "key": "TIMOB-15642", "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": null, "resolutiondate": null, "created": "2013-11-02T00:49:00.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "reprod" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:45.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h2. problem\r\n\r\nIf there are TableViewRows after a TableViewSection that contains a footerView, that section's footView will appear after the following rows, not at the end of the section. Please see the attached screenshot for a clearer picture.\r\n\r\nh2. test case\r\n\r\n{code:javascript}\r\nvar rowCtr = 0,\r\n\tdata = [];\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#fff',\r\n\tfullscreen: false,\r\n\texitOnClose: true\r\n});\r\n\r\nvar section = Ti.UI.createTableViewSection({\r\n\theaderView: Ti.UI.createLabel({\r\n\t\ttext: 'headerView',\r\n\t\tbackgroundColor: '#a00',\r\n\t\tcolor: '#fff',\r\n\t\theight: '40dp',\r\n\t\twidth: Ti.UI.FILL\r\n\t}),\r\n\tfooterView: Ti.UI.createLabel({\r\n\t\ttext: 'footerView',\r\n\t\tbackgroundColor: '#00a',\r\n\t\tcolor: '#fff',\r\n\t\theight: '40dp',\r\n\t\twidth: Ti.UI.FILL\r\n\t})\r\n});\r\n\r\ngenRows(4, data);\r\ngenRows(4, section);\r\ndata.push(section);\r\ngenRows(4, data);\r\n\r\nvar table = Ti.UI.createTableView({\r\n\tdata: data\r\n});\r\n\r\nwin.add(table);\r\nwin.open();\r\n\r\nfunction genRows(num, obj) {\r\n\tvar isSection = typeof obj.length === 'undefined';\r\n\tfor (var i = 0; i < num; i++) {\r\n\t\tvar row = Ti.UI.createTableViewRow({\r\n\t\t\ttitle: (isSection ? 'section ' : '') + 'row ' + (++rowCtr)\r\n\t\t});\r\n\r\n\t\tif (!isSection) {\r\n\t\t\tobj.push(row);\r\n\t\t} else {\r\n\t\t\tobj.add(row);\r\n\t\t}\r\n\t}\r\n}\r\n{code}", "attachment": [ { "id": "43626", "filename": "Screen Shot 2013-11-01 at 8.45.13 PM.png", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-02T00:49:57.000+0000", "size": 39604, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Rows after TableViewSection make section's footerView appear in wrong location", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "277802", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The footerView in the attached image should be after \"section row 8\", not at the end of the table, as the footerView belongs to the section, not the table.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-02T00:49:57.000+0000", "updated": "2013-11-02T00:49:57.000+0000" }, { "id": "324666", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduce 3.2.0 and 3.4.0 \r\nAppcelerator Studio, build: 3.3.0.201407111535 \r\nTiSDK 3.4.0 \r\niOS SDK: 7.1 \r\nTitanium Command-Line Interface, CLI version 3.3.0", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-19T06:38:14.000+0000", "updated": "2014-09-19T06:38:14.000+0000" }, { "id": "422392", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170620103414\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-20T20:33:03.000+0000", "updated": "2017-06-20T20:33:03.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }