{ "id": "168515", "key": "TIMOB-24858", "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-07T12:19:09.000+0000", "created": "2017-06-20T11:40:37.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" }, { "id": "19572", "description": "Important fixes for 6.1.0", "name": "Release 6.1.1", "archived": false, "released": true, "releaseDate": "2017-06-16" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-17T00:27:28.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": "TableViewRow defaults to horizontal on Windows, this is evidenced by the below code where the labels are added next to the last label added rather than at the right hand side of the TableViewRow, and row.layout logging horizontal\r\n\r\n{code}\r\nvar _window = Ti.UI.createWindow();\r\nvar row = Ti.UI.createTableViewRow({\r\n width: 300,\r\n height: 40\r\n});\r\nvar nameLabel = Titanium.UI.createLabel({\r\n text: 'Title',\r\n left: 10\r\n});\r\nrow.add(nameLabel);\r\nvar tableView = Ti.UI.createTableView({\r\n top: 0,\r\n width: 300,\r\n height: Ti.UI.SIZE,\r\n data: [row]\r\n});\r\nvar addButton = Ti.UI.createButton({\r\n title: 'Add Label',\r\n width: 200,\r\n height: 100\r\n});\r\n\r\naddButton.addEventListener('click', function() {\r\n var valueLabel1 = Ti.UI.createLabel({\r\n text: 'New Label'\r\n });\r\n row.add(valueLabel1);\r\n});\r\n_window.add(tableView);\r\n_window.add(addButton);\r\nconsole.log(row.layout);\r\n_window.open();\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n\r\nh5.Steps to reproduce\r\n\r\n# Add the above to an existing app.js\r\n# Build for a windows target\r\n# Click the button\r\n\r\nh5.Actual\r\n\r\nLabel is added to the right of the last Label\r\n\r\nh5.Expected\r\n\r\nLabels should be added at the far end of the TableViewRow ", "attachment": [], "flagged": false, "summary": "Windows: TableViewRow defaults to horizontal layout", "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": "Ti SDK: 6.1.1.v20170619143158, 6.1.0.GA\r\nAppc Core: 6.2.2\r\nAppc NPM: 4.2.9\r\nLumia 550 10.0\r\n10.0 ws-local", "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": 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": "429637", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1153", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-10-26T01:34:17.000+0000", "updated": "2017-10-26T01:34:17.000+0000" }, { "id": "430884", "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:27:28.000+0000", "updated": "2017-11-17T00:27:28.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }