{ "id": "168154", "key": "TIMOB-24792", "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": "19572", "description": "Important fixes for 6.1.0", "name": "Release 6.1.1", "archived": false, "released": true, "releaseDate": "2017-06-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-06-09T18:47:50.000+0000", "created": "2017-06-07T15:14:30.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "regression" ], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "issuelinks": [ { "id": "55216", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "168411", "key": "TIMOB-24824", "fields": { "summary": "Windows: Horizontal layouts do not behave correctly with 'right'", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "55102", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "165192", "key": "TIMOB-24277", "fields": { "summary": "Android: ListView horizontal layout ignores 'right'", "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": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-20T22:09:55.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": "Views contained in a horizontal layout using {{right}} do not display correctly.\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow({title: 'TIMOB-24277', backgroundColor: 'gray', layout: 'horizontal'}),\r\n a = Ti.UI.createView({\r\n height: 100,\r\n width: 100,\r\n borderColor: 'red',\r\n borderWidth: 5,\r\n backgroundColor: 'blue',\r\n right: 10\r\n }),\r\n b = Ti.UI.createView({\r\n \theight: 100,\r\n \twidth: 100,\r\n \tborderColor: 'purple',\r\n \tborderWidth: 5,\r\n \tbackgroundColor: 'orange',\r\n \tright: 10\r\n });\r\n\r\nwin.add([a, b]);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "62624", "filename": "LayoutTest.js", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-09T01:12:12.000+0000", "size": 16214, "mimeType": "application/x-javascript" }, { "id": "62434", "filename": "Screen Shot 2017-06-07 at 4.08.13 PM.png", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-07T23:58:09.000+0000", "size": 185390, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Horizontal layouts do not behave correctly with 'right'", "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": 903, "state": "closed", "name": "2017 Sprint 12 SDK", "startDate": "2017-06-05T00:15:46.290Z", "endDate": "2017-06-19T00:15:00.000Z", "completeDate": "2017-06-19T16:09:22.870Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "421179", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/9123\r\n6_1_X: https://github.com/appcelerator/titanium_mobile/pull/9124", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-07T15:20:53.000+0000", "updated": "2017-06-07T15:20:53.000+0000" }, { "id": "421352", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Node Version: 6.10.3\r\nNPM Version: 3.10.10\r\nMac OS: 10.12.4\r\nAppc CLI: 6.2.2\r\nAppc CLI NPM: 4.2.9\r\nTitanium SDK version: 6.2.0 (master) pr/9123\r\nAppcelerator Studio, build: 4.9.0.201705302345-39\r\nXcode 8.3.2\r\n\r\n[~gmathews] We tried with another test case by adding another view. It appears the views are placed out of order. Here is the testcase and a screen shot of what it produces:\r\n{code}\r\nvar win = Ti.UI.createWindow({title: 'TIMOB-24277', backgroundColor: 'gray', layout: 'horizontal'}),\r\n a = Ti.UI.createView({\r\n height: 100,\r\n width: 100,\r\n borderColor: 'red',\r\n borderWidth: 5,\r\n backgroundColor: 'blue',\r\n right: 10\r\n }),\r\n b = Ti.UI.createView({\r\n \theight: 100,\r\n \twidth: 100,\r\n \tborderColor: 'purple',\r\n \tborderWidth: 5,\r\n \tbackgroundColor: 'yellow',\r\n \tright: 10\r\n }),\r\n c = Ti.UI.createView({\r\n \theight: 100,\r\n \twidth: 100,\r\n \tborderColor: 'purple',\r\n \tborderWidth: 5,\r\n \tbackgroundColor: 'orange',\r\n \tright: 20\r\n });\r\n \r\nwin.add([a, b, c]);\r\nwin.open();\r\n{code}\r\n!Screen Shot 2017-06-07 at 4.08.13 PM.png|thumbnail!", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-07T23:57:27.000+0000", "updated": "2017-06-07T23:58:59.000+0000" }, { "id": "421361", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please see the attached \"LayoutTest.js\" file. It provides several view layout and positioning tests that we can use to help avoid regressions and to compare how layouts work between platforms. (I kept the code to 1 file for easy distribution between us.)\r\n\r\nThis project's \"Horizontal Wrapping (Bottom-Right Padding)\" test currently fails on Android but works on iOS. This is the issue Gary is fixing.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-08T04:22:35.000+0000", "updated": "2017-06-08T04:22:35.000+0000" }, { "id": "421515", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~jquick] awesome!", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-08T14:08:34.000+0000", "updated": "2017-06-08T14:08:34.000+0000" }, { "id": "421582", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated the attached \"LayoutTest.js\" to include 3 new ListView item layout tests.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-09T01:12:57.000+0000", "updated": "2017-06-09T01:12:57.000+0000" }, { "id": "421688", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 6.1.1.v20170609120621 & 6.2.0.v2017060912085.\r\nUsed the test case above & the attached {{LayoutTest.js}} to test.\r\n\r\nClosing.\r\n\r\nStudio Ver: 4.9.0.201705302345\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.3\r\nAppc NPM: 4.2.9\r\nAppc CLI: 6.2.2\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.9.11\r\nNode Ver: 6.10.1\r\nJava Ver: 1.8.0_101\r\nDevices: ⇨ google Pixel --- Android 7.1.1\r\n ⇨ google Nexus 5 --- Android 6.0.1\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-09T21:28:05.000+0000", "updated": "2017-06-09T21:28:05.000+0000" }, { "id": "421926", "author": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "body": "Not sure if related textAlign: Ti.UI.TEXT_ALIGNMENT_RIGHT on textFields on Android seems to have stopped working after 6.1.0 and still not fixed on 6.1.1", "updateAuthor": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2017-06-14T08:28:00.000+0000", "updated": "2017-06-14T08:28:00.000+0000" }, { "id": "421946", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~fahad86] Do you have a test case? I can't reproduce your issue with:\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'gray'}),\r\n lbl = Ti.UI.createLabel({\r\n text: 'TEST TEXT',\r\n width: Ti.UI.FILL,\r\n textAlign: Ti.UI.TEXT_ALIGNMENT_RIGHT\r\n });\r\n\r\nwin.add(lbl);\r\nwin.open();\r\n{code}\r\n\r\nIf this is an issue, it should be filed under a new ticket.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-14T14:45:45.000+0000", "updated": "2017-06-14T14:45:45.000+0000" }, { "id": "422020", "author": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "updateAuthor": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2017-06-15T02:53:57.000+0000", "updated": "2017-06-15T02:53:57.000+0000" }, { "id": "422412", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Regarding [~fahad86]'s issue, that is a separate bug that has been written up here: [TIMOB-24866]", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-20T22:09:55.000+0000", "updated": "2017-06-20T22:09:55.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }