{ "id": "162161", "key": "TIMOB-23694", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-08-03T08:25:26.000+0000", "created": "2016-07-27T18:43:23.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "parity", "qe-5.4.0" ], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [ { "id": "52278", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "162160", "key": "TIMOB-23693", "fields": { "summary": "Windows: setting a headerView/footerView for a listview without a height set on the view makes the view oversized", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-08-19T15:49:56.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\nWhen adding a headerView or footerView to a tableview, if the views do not have a height set then the headerView or footerView\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor:'green'});\r\n\r\nvar header = Ti.UI.createView({backgroundColor: \"blue\"});\r\nvar lbl = Ti.UI.createLabel({text:\"Valid\"});\r\nheader.add(lbl);\r\n\r\nvar footer = Ti.UI.createView({backgroundColor: \"blue\"});\r\nvar lbl2 = Ti.UI.createLabel({text:\"Invalid\"});\r\nfooter.add(lbl2);\r\n\r\nvar section = Ti.UI.createTableViewSection({id:\"Valid\", headerView:header, footerView: footer});\r\nsection.add(Ti.UI.createTableViewRow({ title: 'Carrots' }));\r\nsection.add(Ti.UI.createTableViewRow({ title: 'Potatoes' }));\r\n\r\nvar tblView = Ti.UI.createTableView({\r\n\tdata: [section]\r\n});\r\n\r\nwin.add(tblView);\r\nwin.open();\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Using the code above build for Windows platform\r\n\r\nh5.Actual result\r\n\r\nThe headerView and footerView will be bigger than they should be\r\n\r\nh5.Expected\r\n\r\nThe headerView and footerView should be appropriately sized for the UI elements inside, as is the behaviour on iOS and Android", "attachment": [], "flagged": false, "summary": "Windows: setting a headerView/footerView for a tableview without a height set on the view makes the view oversized", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Windows 10 \r\nAppc CLI Core: 5.4.0-35 \r\nAppc CLI NPM: 4.2.7 \r\nTi SDK: 5.4.0.v20160725003348", "closedSprints": [ { "id": 685, "state": "closed", "name": "2016 Sprint 16 SDK", "startDate": "2016-07-30T00:40:02.939Z", "endDate": "2016-08-13T00:40:00.000Z", "completeDate": "2016-08-15T08:00:33.056Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "392287", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/795", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-03T08:25:27.000+0000", "updated": "2016-08-03T08:25:27.000+0000" }, { "id": "393611", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nWindows 10 Pro\r\nAppc core: 6.0.0-26\r\nAppc NPM: 4.2.8-5\r\nTi SDK: 6.0.0.v20160817065403\r\nLumia 930: 10.0\r\nLuma 520: 8.1\r\n\r\nheaderView and footerView are now correctly sized to the size of the child views \r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-08-19T15:49:52.000+0000", "updated": "2016-08-19T15:49:52.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }