{ "id": "168389", "key": "AC-5025", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-07-31T22:14:51.000+0000", "created": "2017-06-14T08:25:27.000+0000", "labels": [ "android", "api", "parity" ], "versions": [], "issuelinks": [ { "id": "55258", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "168535", "key": "TIMOB-24866", "fields": { "summary": "Android: Setting a TextField's \"padding\" resets its alignment to left/center", "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 } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-31T22:14:51.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "TextField textAlign: Ti.UI.TEXT_ALIGNMENT_RIGHT doesn't seem to be working anymore on Android.\r\n\r\nFrom Ti SDK 6.1.0", "attachment": [], "flagged": false, "summary": " textAlign: Ti.UI.TEXT_ALIGNMENT_RIGHT not working", "creator": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "environment": "TItanium SDK 6.1.1.v20170526172659\r\nAndroid device os 7.1.2", "comment": { "comments": [ { "id": "422024", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~fahad86], unfortunately we were not able to reproduce this issue.\r\n\r\nWe tested on an Android device with a TextField set up to show right aligned text and it worked.\r\nWe even tried setting up the Android device for right-to-left text and Titanium's TextFields still correctly displayed the left/right aligned text.\r\n\r\nCan you give us simple test code to reproduce this issue please? Thanks.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-15T05:02:22.000+0000", "updated": "2017-06-15T05:02:22.000+0000" }, { "id": "422128", "author": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "body": "Hi Joshua, can you please try the following on both Android and iOS to see the difference in Behaviour\r\n\r\nindex.xml\r\n`\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n`\r\n\r\nindex.tss\r\n`\r\n\".default_field_container\": {\r\n top: 1,\r\n width: Ti.UI.FILL,\r\n height: 40,\r\n backgroundColor: \"white\"\r\n}\r\n\r\n\".default_field_label\": {\r\n left: 8,\r\n font: {\r\n fontSize: 16,\r\n fontWeight: 'normal'\r\n },\r\n color: \"gray\"\r\n}\r\n\r\n\".input_text_field\": {\r\n right: 11,\r\n height: Ti.UI.SIZE,\r\n width: Ti.UI.FILL,\r\n autocorrect: false,\r\n font: {\r\n fontSize: 16\r\n },\r\n borderRadius: 3,\r\n borderColor: \"gray\",\r\n borderWidth: 1,\r\n padding: {\r\n left: 5,\r\n right: 5\r\n },\r\n color: \"black\",\r\n textAlign: Ti.UI.TEXT_ALIGNMENT_RIGHT,\r\n returnKeyType: Ti.UI.RETURNKEY_NEXT,\r\n bubbleParent: false\r\n}\r\n\r\n\"#phone_field_input[platform=android]\": {\r\n focusable: true\r\n}\r\n`", "updateAuthor": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2017-06-16T04:46:10.000+0000", "updated": "2017-06-16T04:46:10.000+0000" }, { "id": "422346", "author": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "body": "issue seems to appear when *_\"padding:{ left: 5, right: 5 }\"_* values are set on the textField. I've resolved my issue by getting rid of the padding attributes.", "updateAuthor": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2017-06-20T03:31:35.000+0000", "updated": "2017-06-20T03:31:35.000+0000" }, { "id": "422410", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~fahad86], thanks for the above info. That helped us isolate and reproduce this issue. We've written up a bug report for it here: [TIMOB-24866]", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-20T22:06:52.000+0000", "updated": "2017-06-20T22:06:52.000+0000" }, { "id": "424828", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue will be fixed in Titanium 6.2.0.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-26T19:00:48.000+0000", "updated": "2017-07-26T19:00:48.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }