{ "id": "168423", "key": "TIMOB-24828", "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": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-07-27T13:18:05.000+0000", "created": "2017-06-15T13:58:08.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "issuelinks": [ { "id": "55273", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "168575", "key": "TIMOB-24883", "fields": { "summary": "Windows: Incorrect child view size when parent view has border", "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 } } } }, { "id": "55271", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "168425", "key": "TIMOB-24831", "fields": { "summary": "Windows: Layout does not seem to consider left and right properties", "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": "High", "id": "2" }, "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": "2017-08-14T11:08:16.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\nWith the below code, the second TextField does not stretch the width of the view as expected, commenting left or right on the first TextField will make it stretch, this occurs for all UI elements\r\n\r\n{code}\r\nvar _window = Ti.UI.createWindow();\r\nvar txtUsername = Ti.UI.createTextField({\r\n top: 50,\r\n left: 10,\r\n right: 10,\r\n hintText: 'Username'\r\n});\r\nvar txtPassword = Ti.UI.createTextField({\r\n top: 150,\r\n left: 10,\r\n right: 10,\r\n hintText: 'Password'\r\n});\r\nvar view = Ti.UI.createView({\r\n height: 480,\r\n width: 320,\r\n borderColor: 'green',\r\n borderWidth: 5,\r\n backgroundColor: 'red'\r\n});\r\nview.add(txtPassword)\r\nview.add(txtUsername);\r\n_window.add(view);\r\n_window.open();\r\n{code}\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\r\nh5.Actual\r\n\r\nSecond TextField does not stretch the width of the view\r\n\r\nh5.Expected\r\n\r\nSecond TextField should stretch the width of the view", "attachment": [], "flagged": false, "summary": "Windows: Unexpected layout for second UI element in a View", "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.v20170614134051\r\nAppc Core: 6.2.2\r\nAppc NPM: 4.2.9\r\nLumia 550 10.0\r\n10.0 ws-local\r\n", "closedSprints": [ { "id": 925, "state": "closed", "name": "2017 Sprint 15 SDK", "startDate": "2017-07-16T14:40:47.191Z", "endDate": "2017-07-30T14:40:00.000Z", "completeDate": "2017-07-31T16:15:09.335Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "423114", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1025", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-29T03:36:33.000+0000", "updated": "2017-06-29T03:36:33.000+0000" }, { "id": "424883", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "6_2_X backport merged in https://github.com/appcelerator/titanium_mobile_windows/pull/1048 \r\n\r\nAwaiting the build before closing", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-07-27T13:18:11.000+0000", "updated": "2017-07-27T13:18:11.000+0000" }, { "id": "426603", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified in 6.2.0.v20170811022027", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-08-14T11:08:05.000+0000", "updated": "2017-08-14T11:08:05.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }