{ "id": "117237", "key": "TIMOB-14565", "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": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-07-13T21:36:47.000+0000", "created": "2013-07-16T20:18:52.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [ { "id": "30246", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "116320", "key": "ALOY-717", "fields": { "summary": "Improve \"reflow\"/\"repaint\" functionality when adding and removing classes", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-07-20T21:29:33.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": "h2. problem\r\n\r\nWhen setting the *font* property of a Ti.UI.Label to *null* or *{}*, the font of the Label does not return to the default font which is used when no font property is defined. It instead is set to a font slightly smaller than the default font. This is best seen by running the test case below.\r\n\r\nThis is an issue for Alloy as it relies on the ability to \"reset\" Titanium proxy properties in order to remove/reset style classes at runtime. In its current state, this could potentially create unexpected visual results on iOS. \r\n\r\nh2. expected\r\n\r\nWhen I set the the *font* property of a Ti.UI.Label to *null* or *{}*, the font of the Label should return to its default state. This is what occurs on Android and Mobileweb.\r\n\r\nh2. test case \r\n\r\nh4. app.js\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#fff',\r\n\tmodal: false,\r\n\texitOnClose: true\r\n});\r\nvar label = Ti.UI.createLabel({\r\n\ttext: 'just a test label'\r\n});\r\n\r\n// Clicking the label will show that on iOS a slightly smaller font is used when\r\n// the label is re-rendered with font=null. All other platforms use the same default\r\n// font.\r\nlabel.addEventListener('click', function(e) {\r\n\tlabel.font = null;\r\n});\r\n\r\nwin.add(label);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: \"font\" property does not return to default when set to null or {}", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.1.1\r\niOS 6.1", "comment": { "comments": [ { "id": "318386", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \r\nTitanium Command-Line Interface, \r\nCLI version 3.3.0, \r\nTitanium SDK version 3.3.0.GA \r\niOS SDK: 7.1 \r\niOS iPhone Simulator: 7.1", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-13T06:34:01.000+0000", "updated": "2014-08-13T06:34:01.000+0000" }, { "id": "423243", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "iOS uses the default font-size of 17 these days, we used 14/15 in many places. This PR will align the defaults to the native defaults, so when you click, the label should not decrease. This will also fix number of potential other font-tickets.\r\n\r\nPR: https://github.com/appcelerator/titanium_mobile/pull/9182", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-06-30T08:52:10.000+0000", "updated": "2017-06-30T08:58:14.000+0000" }, { "id": "424485", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix in SDK version: 6.2.0.v20170719160617. Test and other information can be found at: \r\nhttps://github.com/appcelerator/titanium_mobile/pull/9182", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-20T21:29:26.000+0000", "updated": "2017-07-20T21:29:26.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }