{ "id": "164461", "key": "TIMOB-24124", "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": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-11-07T20:59:12.000+0000", "created": "2016-11-09T12:05:43.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-6.0.0" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [ { "id": "55931", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "158457", "key": "TIMOB-22507", "fields": { "summary": "Ti.UI.TableView Test Suite: itanium.UI.TableView Acceptance TIMOB-12625", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-17T00:29:13.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 calling update on a tableviewsection to include a headerView a layout issue occurs\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'blue'\r\n});\r\n\r\nvar header1 = Ti.UI.createView({backgroundColor: 'red '});\r\nvar label = Ti.UI.createLabel({\r\n text: \"That Section\"\r\n});\r\nheader1.add(label);\r\n\r\nvar section_0 = Ti.UI.createTableViewSection({ headerView: header1 });\r\nsection_0.add(Ti.UI.createTableViewRow({ title: 'Red' }));\r\n\r\n\r\nvar header2 = Ti.UI.createView();\r\nvar label2 = Ti.UI.createLabel({\r\n text: \"This Section\"\r\n});\r\nheader2.add(label2);\r\nvar section_2 = Ti.UI.createTableViewSection({ headerView: header2});\r\nsection_2.add(Ti.UI.createTableViewRow({ title: 'Gray' }));;\r\n\r\nvar tableView = Ti.UI.createTableView({\r\n data: [section_0]\r\n});\r\n\r\nwin.addEventListener('click', function () {\r\n\ttableView.updateSection(0, section_2);\r\n});\r\n\r\nwin.add(tableView);\r\nwin.open();\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Add the code above to an existing app.js\r\n# Tap the tableviewrow\r\n\r\nh5.Actual result\r\n\r\nThe tableview is updated and headerView is now partially off screen\r\n\r\nh5.Expected result\r\n\r\nNo layout errors should occur", "attachment": [], "flagged": false, "summary": "Windows: Updating a tableView section with a headerView causes a layout issue", "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": "OS: Microsoft Windows 10 Pro 10.0.14393\r\nAppc core: 6.0.0-69\r\nAppc NPM: 4.2.8-9\r\nTi SDK: 6.0.0.v20161107075927", "closedSprints": [ { "id": 963, "state": "closed", "name": "2017 Sprint 22 SDK", "startDate": "2017-10-22T21:43:59.523Z", "endDate": "2017-11-05T22:43:00.000Z", "completeDate": "2017-11-06T16:33:42.425Z", "originBoardId": 114 }, { "id": 839, "state": "closed", "name": "2017 Sprint 04 SDK", "startDate": "2017-02-12T23:36:00.961Z", "endDate": "2017-02-26T23:36:00.000Z", "completeDate": "2017-02-26T17:38:54.172Z", "originBoardId": 114 }, { "id": 968, "state": "closed", "name": "2017 Sprint 23 SDK", "startDate": "2017-11-05T16:37:25.071Z", "endDate": "2017-11-19T16:37:00.000Z", "completeDate": "2017-11-20T18:57:56.565Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "429405", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1147", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-10-23T08:01:39.000+0000", "updated": "2017-10-23T08:01:39.000+0000" }, { "id": "430885", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on SDK 7.0.0.v20171116132144 installed from CLI. Fix is verified.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-17T00:29:13.000+0000", "updated": "2017-11-17T00:29:13.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }