{ "id": "124237", "key": "TIMOB-16100", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-11-11T08:58:25.000+0000", "created": "2013-12-27T19:02:54.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios9", "passwordmask", "textfield" ], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-11-30T19:53:06.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "TextField with passwordMask and some fontFamily changes its font size with every focus/blur. It is completely impossible to set own font family...\r\n\r\nAttached video.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: \"black\"\r\n});\r\n\r\nvar normalTextField = Ti.UI.createTextField({\r\n\twidth: 200, height: 50,\r\n\tbackgroundColor: \"red\",\r\n\thintText: \"Normal TextField\",\r\n\ttop: 150\r\n});\r\n\r\nvar passwordTextField = Ti.UI.createTextField({\r\n\twidth: 200, height: 50,\r\n\tbackgroundColor: \"red\",\r\n\thintText: \"Password\",\r\n\tpasswordMask: true,\r\n\ttop: 203,\r\n\tfont: {fontSize: 15, fontFamily: \"Avenir-Medium\"}\r\n});\r\n\r\nwin.add(normalTextField);\r\nwin.add(passwordTextField);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "44848", "filename": "tf_bug.mov", "author": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-27T19:02:54.000+0000", "size": 3172718, "mimeType": "video/quicktime" } ], "flagged": false, "summary": "iOS9: TextField with passwordMask & fontFamily changes its fontSize", "creator": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti 3.2", "closedSprints": [ { "id": 752, "state": "closed", "name": "2016 Sprint 23 SDK", "startDate": "2016-11-05T00:39:37.027Z", "endDate": "2016-11-19T01:39:00.000Z", "completeDate": "2016-11-29T06:51:57.887Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "302178", "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-7260", "updateAuthor": { "name": "wood1k", "key": "wood1k", "displayName": "Alexey Chulochnikov", "active": true, "timeZone": "Europe/Helsinki" }, "created": "2014-04-23T13:31:29.000+0000", "updated": "2014-04-23T13:32:12.000+0000" }, { "id": "319675", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduced on both SDK Version 3.2.0 GA and 3.4.0 GA\r\n\r\nCLI version 3.3.0, \r\nTitanium SDK version 3.4.0 \r\nTitanium SDK version 3.2.0 \r\niOS SDK: 7.1 \r\nAppcelerator Studio, build: 3.3.0.201407111535\r\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-21T10:14:23.000+0000", "updated": "2014-08-21T10:14:23.000+0000" }, { "id": "398355", "author": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "body": "I have this issue, is hard to fix? Let me know if you want me test something on my side!\r\nThanks\r\n- Nuno\r\n\r\n\r\n{code:java}\r\n//XML\r\n\r\n \r\n \r\n\r\n\r\n\r\nJS\r\n//hide or show password\r\nfunction hidePassword(e) {\r\n\t//e.cancelBubble = true;\r\n\tif ($.password.passwordMask === true) {\r\n\t\t$.labelHide.text = \"hide\";\r\n\t\t//inject font here, but still not work\r\n\t\t$.password.font = {\r\n\t\t\tfontFamily:\"Lato-Regular\",\r\n\t\t\tfontSize: 14\r\n\t\t}\r\n\t\t$.password.passwordMask = false;\r\n\t\t\r\n\t} else {\r\n\t\t$.labelHide.text = \"show\";\r\n\t\t$.password.font = {\r\n\t\t\tfontFamily:\"Lato-Regular\",\r\n\t\t\tfontSize: 14\r\n\t\t}\r\n\t\t$.password.passwordMask = true;\r\n\t\t\r\n\t}\r\n}\r\n\r\n\r\n\r\n\r\n// TSS\r\n\"#password\":{\r\n\twidth : Ti.UI.FILL,\r\n\theight : 40,\r\n\tfont : {fontSize: 14, fontFamily:\"Lato-Regular\"},\r\n\tpasswordMask : false,\r\n\thintText : \"password\",\r\n\tautocorrect : false,\r\n\tautocapitalization: Titanium.UI.TEXT_AUTOCAPITALIZATION_NONE,\r\n returnKeyType: Ti.UI.RETURNKEY_DONE\r\n}\r\n\r\n\r\n{code}\r\n\r\nhttp://sharebucketapp.com/2FiNTE3ZGM1YjhiODc5M", "updateAuthor": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "created": "2016-10-07T14:56:30.000+0000", "updated": "2016-10-07T14:59:54.000+0000" }, { "id": "398371", "author": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "body": "*This is important!*\r\nI also found this odd behavior that *{color:red}adds an extra space{color}* that when you do use for Logins (our case) fails that user to login.\r\n\r\nhttp://sharebucketapp.com/RmYzI0NjExZWQ4MDdiMj\r\n\r\n*Better image:*\r\nhttp://sharebucketapp.com/1ZjkwYTE3NzNlNTQ1Mg\r\n\r\n*UPDATE:*\r\n\r\nSome more tests and seams the {color:red}extra space injected by the mask not change{color} the final (password.value)", "updateAuthor": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "created": "2016-10-07T17:33:56.000+0000", "updated": "2016-10-07T19:52:58.000+0000" }, { "id": "398373", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I cannot reproduce the initial issue, [~nunocostapt] can you?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-10-07T17:41:37.000+0000", "updated": "2016-10-07T17:41:37.000+0000" }, { "id": "398389", "author": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "body": "Hans, initial issue you mean by the original code by Matej?\r\n\r\nVideo http://sharebucketapp.com/4Mzk4OGFiNGFmNjk3Njg", "updateAuthor": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "created": "2016-10-07T18:11:12.000+0000", "updated": "2016-10-07T18:23:14.000+0000" }, { "id": "398397", "author": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "body": "*Test case and Video:*\r\n\r\n[https://gist.github.com/hansemannn/58aff0f5df455981298347815b68071a]\r\n\r\n[http://sharebucketapp.com/dmOTI5MjBhMDRjZTY2ZD]\r\n\r\n*Note:*\r\n-I not sure if this is related to the main issue by *Matej*-\r\n\r\n*UPDATE:*\r\nI did some research and this is what I come up and found:\r\nhttps://gist.github.com/nuno/15b01d2f6ad6c11f594e190d7f90e5c1\r\n\r\n*Video* with font reset applied technique, http://sharebucketapp.com/MmEzNzUxNmE2YzcwMmUx", "updateAuthor": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "created": "2016-10-07T18:48:09.000+0000", "updated": "2016-10-20T17:37:17.000+0000" }, { "id": "399519", "author": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "body": "*Update:*\r\nThe issue seams that is fixed by apple on iOS 10!\r\nThe issue above is on iOS9.", "updateAuthor": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "created": "2016-10-20T19:21:47.000+0000", "updated": "2016-10-20T19:21:47.000+0000" }, { "id": "399660", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/8534\r\nPR (unit-test): https://gist.github.com/hansemannn/58aff0f5df455981298347815b68071a\r\nPosition of cursor was not resetting while unmasking, as end of document calculation goes wrong in iOS below 10 . That made fix by resetting textfield value to blank character and then setting to its actual value.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-10-24T10:23:49.000+0000", "updated": "2016-10-24T10:23:49.000+0000" }, { "id": "402281", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using the test case https://gist.github.com/hansemannn/58aff0f5df455981298347815b68071a no extra spaces were added when pressing show password and the font size and font family seemed consistent. \r\n*Environment*\r\n{code:java}\r\nAppcelerator Command-Line Interface, version 6.0.0\r\nIphone 5 IOS 9.1\r\nIphone 6 Simulator IOS 9.0\r\nOperating System Name: Mac OS X El Capitan\r\nOperating System Version: 10.11.6\r\nNode.js Version: 4.6.0\r\nnpm: 4.2.8\r\nTitanium CLI Version: 5.0.10\r\nTitanium SDK Version: 6.1.0.v20161129071600\r\nXcode: 8.0\r\nAppcelerator Studio: 4.8.0.201611121409\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-30T19:52:34.000+0000", "updated": "2016-11-30T19:52:34.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }