{ "id": "170213", "key": "TIMOB-25477", "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": "19988", "description": "", "name": "Release 7.0.1", "archived": false, "released": true, "releaseDate": "2017-12-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-12-15T18:13:24.000+0000", "created": "2017-11-02T19:10:30.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "textfield" ], "versions": [ { "id": "19542", "description": "", "name": "Release 6.2.2", "archived": false, "released": true, "releaseDate": "2017-09-19" } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-12-20T22:29:39.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": "*Problem:*\r\n\r\nIn a right aligned TextField (2nd and last in example) it is difficult to select the text by clicking in the the TextField area. \r\n\r\n*Testdevice:*\r\nHTC A9 (Android 7)\r\n\r\n*SDK Versions*\r\n- 6.2.1.GA working\r\n- 6.2.2.GA+ not working\r\n\r\nThis PR: https://github.com/appcelerator/titanium_mobile/pull/9433 was between 6.2.1 and 6.2.2 so it might give a hint.\r\n\r\n*Example*\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#fff',\r\n\tlayout: \"vertical\"\r\n});\r\n \r\nvar tf1 = Ti.UI.createTextField({\r\n\twidth: Ti.UI.FILL,\r\n\ttop: 10,\r\n\theight: 40,\r\n\tborderColor:\"#000\",\r\n\tborderWidth:1,\r\n\tbottom: 10\r\n});\r\nvar tf2 = Ti.UI.createTextField({\r\n\twidth: Ti.UI.FILL,\r\n\ttop: 10,\r\n\theight: 40,\r\n\tborderColor:\"#000\",\r\n\tborderWidth:1,\r\n\tbottom: 10,\r\n\ttextAlign:Ti.UI.TEXT_ALIGNMENT_RIGHT\r\n});\r\nvar tf3 = Ti.UI.createTextField({\r\n\twidth: Ti.UI.FILL,\r\n\ttop: 10,\r\n\theight: 40,\r\n\tborderColor:\"#000\",\r\n\tborderWidth:1,\r\n\tbottom: 10,\r\n\ttextAlign:Ti.UI.TEXT_ALIGNMENT_RIGHT\r\n});\r\n \r\nwin.add(tf1);\r\nwin.add(tf2);\r\nwin.add(tf3);\r\nwin.open();\r\n{code}\r\n\r\n*Additional info by [~jquick]*\r\n\r\n{quote}\r\nI'm able to reproduce this issue on an Android 7.1 Pixel XL with right-aligned TextFields, but not left-aligned or center-aligned TextFields. Also, I'm NOT able to reproduce this issue with right-aligned TextFields on an Android 5.0 Moto G or Android 4.1 Galaxy Nexus. Hmm... this requires further investigation.\r\n{quote}\r\n", "attachment": [], "flagged": false, "summary": "Android: Tapping right-aligned TextField not always receiving focus as of 6.2.2", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK 6.3.0 GA", "comment": { "comments": [ { "id": "430383", "author": { "name": "inzori", "key": "inzori", "displayName": "Fabian Martinez", "active": true, "timeZone": "America/Montevideo" }, "body": "I'm having the same issue. Right aligned textfields are impossible to tap so they get focused and show the keyboard. If changed to Left aligned they work.\r\nThis used to work on SDK 6.2.1.GA with Android 4.1.2. On 6.2.2.GA and 6.3.0.GA these fields are not working on this Android version, they work on newer android though.", "updateAuthor": { "name": "inzori", "key": "inzori", "displayName": "Fabian Martinez", "active": true, "timeZone": "America/Montevideo" }, "created": "2017-11-10T13:17:15.000+0000", "updated": "2017-11-10T13:17:15.000+0000" }, { "id": "430427", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~inzori], just to confirm, you're saying you can reproduce this issue on Android 4.1.2?\r\nThat's odd, because I'm unable to reproduce it on an Android 4.1 or 5.0 device. (See my note above.)\r\nIf you tested it on a physical device, then can you tell us the make and model please? Thanks!", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-10T22:57:08.000+0000", "updated": "2017-11-10T22:57:08.000+0000" }, { "id": "430515", "author": { "name": "inzori", "key": "inzori", "displayName": "Fabian Martinez", "active": true, "timeZone": "America/Montevideo" }, "body": "Sorry Joshua, it is on Android 4.4.2. I was able to reproduce it on a Motorola XT891 and we have reports from customers on Galaxy S5 Android v 4.4.2.\r\n", "updateAuthor": { "name": "inzori", "key": "inzori", "displayName": "Fabian Martinez", "active": true, "timeZone": "America/Montevideo" }, "created": "2017-11-13T13:18:09.000+0000", "updated": "2017-11-13T13:18:09.000+0000" }, { "id": "430523", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hmm... perhaps this issue is just more likely to happen on a high DPI screen then. I suspect a touch-move event is triggering this bad behavior and you're more likely to fat-finger a touch-move event on a high DPI screen. We'll look into it.\r\n\r\nThe good news is that left and center alignment work fine, but I can understand you not wanting to use these alignments for numeric fields.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-13T18:34:06.000+0000", "updated": "2017-11-13T18:34:06.000+0000" }, { "id": "430529", "author": { "name": "inzori", "key": "inzori", "displayName": "Fabian Martinez", "active": true, "timeZone": "America/Montevideo" }, "body": "Hi Joshua, no we can't have center or left alignment there.\r\nAs an additional info, sometimes when tapping 4-5 times the field gains focus and shows the keyboard.", "updateAuthor": { "name": "inzori", "key": "inzori", "displayName": "Fabian Martinez", "active": true, "timeZone": "America/Montevideo" }, "created": "2017-11-13T18:55:39.000+0000", "updated": "2017-11-13T18:55:39.000+0000" }, { "id": "431193", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/9624", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-23T00:44:12.000+0000", "updated": "2017-11-23T00:44:12.000+0000" }, { "id": "431355", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Made a custom 6.3.1 with this patch and right aligned text works fine again!", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-28T08:47:03.000+0000", "updated": "2017-11-28T08:47:03.000+0000" }, { "id": "431822", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (7.0.x): https://github.com/appcelerator/titanium_mobile/pull/9662", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-07T03:23:08.000+0000", "updated": "2017-12-07T03:23:08.000+0000" }, { "id": "432050", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR passed for both master and 7.0.1.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-12T20:55:16.000+0000", "updated": "2017-12-12T20:55:16.000+0000" }, { "id": "432447", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Master PR merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-20T17:51:24.000+0000", "updated": "2017-12-20T17:51:24.000+0000" }, { "id": "432462", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket.\r\nVerified Fix in SDK version 7.0.1.v20171218104141 and 7.1.0.v20171220095337.\r\nTest and other information can be found at:\r\nMaster: https://github.com/appcelerator/titanium_mobile/pull/9624\r\n7.0.x: https://github.com/appcelerator/titanium_mobile/pull/9662", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-20T22:29:28.000+0000", "updated": "2017-12-20T22:29:28.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }