{ "id": "175648", "key": "TIMOB-28197", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2020-11-18T02:16:44.000+0000", "created": "2020-10-15T17:28:17.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-11-18T02:16:48.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": "- {{right}} property will be ignored on child-views of views using {{horizontal}} layout\r\n\r\n*TEST CASE*\r\n{code:js}\r\nconst win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'gray'\r\n});\r\nconst row = Ti.UI.createView({\r\n\tlayout: 'horizontal',\r\n\tbackgroundColor: 'white',\r\n\twidth: Ti.UI.FILL,\r\n\theight: 50\r\n});\r\nconst view_a = Ti.UI.createView({\r\n\tbackgroundColor: 'green',\r\n\tleft: 50,\r\n\t// right: 50,\r\n\twidth: 50,\r\n\theight: 50\r\n});\r\nconst view_b = Ti.UI.createView({\r\n\tbackgroundColor: 'red',\r\n\t// left: 50,\r\n\tright: 50,\r\n\twidth: 50,\r\n\theight: 50\r\n});\r\n\r\nrow.add([ view_a, view_b ]);\r\nwin.add(row);\r\nwin.open();\r\n{code}\r\n\r\n*EXPECTED*\r\n- Layout takes into account {{right}} property of child-view and aligns view to the right.\r\n\r\n*ACTUAL*\r\n- {{right}} property is ignored, view is left aligned.", "attachment": [ { "id": "67609", "filename": "HorizontalPinAlignTest.js", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-21T02:49:36.000+0000", "size": 1358, "mimeType": "application/x-javascript" }, { "id": "67610", "filename": "VerticalPinAlignTest.js", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-21T02:49:48.000+0000", "size": 720, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Android: Horizontal layout ignores right property", "creator": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1208, "state": "closed", "name": "2020 Sprint 21", "startDate": "2020-10-12T16:34:00.000Z", "endDate": "2020-10-23T16:34:00.000Z", "completeDate": "2020-10-23T02:32:43.674Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "457261", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/12182", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-15T18:26:26.000+0000", "updated": "2020-10-15T18:26:26.000+0000" }, { "id": "457298", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Default {{right}} property behaviour in {{horizontal}} view is as intended.\r\n\r\nClosing.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-21T16:50:09.000+0000", "updated": "2020-10-21T16:50:09.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }