{ "id": "121976", "key": "TIMOB-15646", "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": "15707", "description": "2013 Sprint 23", "name": "2013 Sprint 23", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "15708", "description": "2013 Sprint 23 API", "name": "2013 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-11-08T00:15:47.000+0000", "created": "2013-11-02T22:41:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_tableview", "parity", "qe-closed-3.2.0", "qe-manualtest", "qe-testadded", "tableView" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2014-11-19T01:17:25.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": "h2. problem\r\n\r\nOn Android, when creating a Ti.UI.TableView, if the TableView's and a TableViewSection's footerViews are both at the bottom of the table, the TableViewSections's footerView is not visible. It's not clear whether they are overalapping, or if the section's footerView is never rendered at all.\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: extraView('headerView', 'section'),\r\n\tfooterView: extraView('footerView', 'section')\r\n});\r\n\r\ngenRows(4, data);\r\ngenRows(4, section);\r\ndata.push(section);\r\n\r\nvar table = Ti.UI.createTableView({\r\n\tdata: data,\r\n\theaderView: extraView('headerView', 'table'),\r\n\tfooterView: extraView('footerView', 'table')\r\n});\r\n\r\nwin.add(table);\r\nwin.open();\r\n\r\nfunction extraView(type, parent) {\r\n\treturn Ti.UI.createLabel({\r\n\t\ttext: parent + ' ' + type,\r\n\t\tbackgroundColor: parent === 'table' ? '#a00' : '#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\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}\r\n\r\nh2. screenshots\r\n\r\nOne screenshot shows the problem on Android. One screenshot shows the test case working properly on iOS.", "attachment": [ { "id": "43629", "filename": "Screen Shot 2013-11-02 at 6.34.47 PM.png", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-02T22:42:16.000+0000", "size": 41608, "mimeType": "image/png" }, { "id": "43630", "filename": "Screen Shot 2013-11-02 at 6.37.33 PM.png", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-02T22:42:16.000+0000", "size": 21447, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: footerViews for sections in TableView disappear when sections have them too", "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": "277936", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Added code to handle footer view.\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4907", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-11-04T12:38:32.000+0000", "updated": "2013-11-04T12:38:32.000+0000" }, { "id": "281447", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "+Verified fixed on:+\nMac OSX 10.9 Mavericks\nTitanium Studio, build: 3.2.0.201311252022\nTitanium SDK, build: 3.2.0.v20131125232254\nCLI: 3.2.0-alpha3\nAlloy: 1.3.0-alpha6\nAndroid Device: HTC One (4.3)\n\nHTC One shows the table simular to the iOS screenshot.\nHeaders and Footers and showing for both table rows and sections rows.\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-26T18:01:20.000+0000", "updated": "2013-11-26T18:01:20.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }