{ "id": "85049", "key": "TIMOB-7260", "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": "16096", "description": "2014 Sprint 09", "name": "2014 Sprint 09", "archived": true, "released": true, "releaseDate": "2014-05-08" }, { "id": "16097", "description": "2014 Sprint 09 SDK", "name": "2014 Sprint 09 SDK", "archived": true, "released": true, "releaseDate": "2014-05-08" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-05-07T22:43:09.000+0000", "created": "2012-01-17T13:18:53.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_textfield", "qe-closed-3.3.0", "qe-testadded", "supportTeam" ], "versions": [], "issuelinks": [ { "id": "37722", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "130202", "key": "TIMOB-16944", "fields": { "summary": "Android: TextField hintText's font is different in passwordMask field than normal field", "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": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-05-19T22:28:07.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": "h3. The Problem:\r\nThe font of the hintText of a text field changes if the field is a \"password field\" or if it's a normal field.\r\n\r\nh3. Code sample in app.js\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'black'\r\n});\r\n\r\nvar username = Ti.UI.createTextField({\r\n\ttop:10,\r\n\tleft:20,right:20,height:40,\r\n\tbackgroundColor:'white',\r\n\t\r\n\thintText:'hintText for username'\r\n});\r\n\r\nvar password = Ti.UI.createTextField({\r\n\ttop:100,\r\n\tleft:20,right:20,height:40,\r\n\tbackgroundColor:'white',\r\n\t\r\n\tpasswordMask:true,\r\n\thintText:'hintText for password'\r\n});\r\n\r\n\r\nwin.add(username);\r\nwin.add(password);\r\n\r\nwin.open();\r\n{code}\r\n\r\nh3. Discussion\r\nAs you can see from this example, the only different between the two textFields is the passwordMask. When the application is ran, you'll see that the font is different to the point that one of the texts is longer than the other.\r\n\r\nh3. Workaround\r\nSetting the fontFamily on a password field doesn't seem to do anything, but setting it on the normal field does work properly. A workaround for now is to set the font family in the normal field as monospace:\r\n{code}\r\nvar foo = Ti.UI.createTextField({\r\n\ttop:10,\r\n\tleft:20,right:20,height:40,\r\n\tbackgroundColor:'white',\r\n\r\n\tfont:{\r\n\t\tfontFamily:'monospace'\r\n\t},\r\n\t\r\n\thintText:'hintText for username'\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: TextField hintText's font is different in passwordMask field than normal field", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Android SDK\r\nTi SDK 1.8.0.1", "closedSprints": [ { "id": 50, "state": "closed", "name": "2014 Sprint 09 Tooling", "startDate": "2014-04-28T15:43:24.381Z", "endDate": "2014-05-10T03:44:00.000Z", "completeDate": "2014-05-12T13:36:16.254Z", "originBoardId": 113 } ], "comment": { "comments": [ { "id": "239562", "author": { "name": "rafaelks", "key": "rafaelks", "displayName": "Rafael Kellermann Streit", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "Any updates? This is really ugly. :-(", "updateAuthor": { "name": "rafaelks", "key": "rafaelks", "displayName": "Rafael Kellermann Streit", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-02-24T18:40:39.000+0000", "updated": "2013-02-24T18:40:39.000+0000" }, { "id": "240330", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Still wrong on 3.0.2, Android 4.0. hintText won't use fontFamily if its a password field", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-03-01T08:28:11.000+0000", "updated": "2013-03-01T08:28:11.000+0000" }, { "id": "283808", "author": { "name": "neosergio", "key": "neosergio", "displayName": "Sergio Infante Montero", "active": true, "timeZone": "America/Bogota" }, "body": "This is still happening with:\r\nTitanium Studio, build: 3.1.3.201309132423\r\nBuild: jenkins-titanium-rcp-master-21 (origin/master)\r\nDate: 13 September 2013, 00:23:57\r\n\r\nand this Devices:\r\nNexus 7 1st generation\r\nKindle Fire HD 7\"\r\n\r\nIs there any solution or suggestion?", "updateAuthor": { "name": "neosergio", "key": "neosergio", "displayName": "Sergio Infante Montero", "active": true, "timeZone": "America/Bogota" }, "created": "2013-12-11T14:07:01.000+0000", "updated": "2013-12-11T14:07:01.000+0000" }, { "id": "285629", "author": { "name": "jrg", "key": "jrg", "displayName": "James R Grinter", "active": true, "timeZone": "Europe/London" }, "body": "happens with 3.2.0 RCs too. But that's probably because it's an underlying Android thing going on here.\r\n\r\nThis StackOverflow thread has some explanation, and it may be possible to follow at least one of those solutions using Titanium (though I didn't have much luck with trying to set fontFamily: 'sans-serif' after - which also seems to vary the font-size from whatever default is in play.)\r\n\r\nhttp://stackoverflow.com/questions/3406534/password-hint-font-in-android\r\n", "updateAuthor": { "name": "jrg", "key": "jrg", "displayName": "James R Grinter", "active": true, "timeZone": "Europe/London" }, "created": "2013-12-23T10:38:27.000+0000", "updated": "2013-12-23T10:38:27.000+0000" }, { "id": "302021", "body": "This issue was previously scheduled to be worked on in more than one sprint:\r\n* 'Release 3.0.1' (on board 'Customer Issues')\r\n* 'Release 3.3.0' (on board '3.2.X Triage')\r\n\r\nStarting from JIRA Agile 6.3, an issue can only belong to a single future sprint. Read more about this change: http://docs.atlassian.com/agile/docs-0630/Sprint+Marker+Migration\r\n\r\nThis issue is now scheduled for future sprint 'Release 3.3.0' (on board '3.2.X Triage').\r\n\r\nIf this is incorrect, please update the issue accordingly.\r\n\r\nThis comment was automatically generated by JIRA. If it is no longer relevant, please feel free to delete it.", "created": "2014-04-22T14:11:29.000+0000", "updated": "2014-04-22T14:11:29.000+0000" }, { "id": "302177", "author": { "name": "wood1k", "key": "wood1k", "displayName": "Alexey Chulochnikov", "active": true, "timeZone": "Europe/Helsinki" }, "body": "Please fix it at 3.2.3 version!\r\nSame as issue - TIMOB-16100", "updateAuthor": { "name": "wood1k", "key": "wood1k", "displayName": "Alexey Chulochnikov", "active": true, "timeZone": "Europe/Helsinki" }, "created": "2014-04-23T13:30:32.000+0000", "updated": "2014-04-23T13:31:58.000+0000" }, { "id": "302179", "author": { "name": "vkorol", "key": "vkorol", "displayName": "Viktor Korol", "active": true, "timeZone": "Europe/Istanbul" }, "body": "I will set custom font of text fields. But for password field on Android it not applied.\r\nPlease fix this issue in 3.2.3 version.", "updateAuthor": { "name": "vkorol", "key": "vkorol", "displayName": "Viktor Korol", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2014-04-23T13:34:12.000+0000", "updated": "2014-04-23T13:34:41.000+0000" }, { "id": "303252", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is an Android bug: https://code.google.com/p/android/issues/detail?id=55418. ", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-01T22:35:39.000+0000", "updated": "2014-05-01T22:35:39.000+0000" }, { "id": "303261", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/5656/files", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-01T23:14:05.000+0000", "updated": "2014-05-01T23:14:05.000+0000" }, { "id": "303928", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR 5656 merged", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-07T22:43:09.000+0000", "updated": "2014-05-07T22:43:09.000+0000" }, { "id": "303977", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the FIXED with:\r\n\r\nAppc-Studio:3.3.0.201405011408\r\nsdk:3.3.0.v20140507163312\r\nacs:1.0.14\r\nalloy:1.4.0-dev\r\nnpm:1.3.2\r\ntitanium:3.3.0-dev\r\ntitanium-code-processor:1.1.1\r\nxcode:5.1.1\r\nDevice:Iphone5s(v7.1.1),Nexus7(v4.4.2)\r\n\r\nFont is same for both the textField normal as well as passwordMask.\r\nHence Closing the issue as working as expected.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-08T06:43:18.000+0000", "updated": "2014-05-08T06:43:18.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }