{ "id": "117667", "key": "TIMOB-14680", "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": "15691", "description": "2013 Sprint 19", "name": "2013 Sprint 19", "archived": true, "released": true, "releaseDate": "2013-09-20" }, { "id": "15693", "description": "2013 Sprint 19 API", "name": "2013 Sprint 19 API", "archived": true, "released": true, "releaseDate": "2013-09-20" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-09-20T18:45:56.000+0000", "created": "2013-07-26T23:58:33.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.1.2", "qe-testadded" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [], "assignee": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-02-19T19:34:52.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "h5. Problem description\r\n\r\nOn BlackBerry, an error is thrown when using a fontSize expressed in 'dp' and fontSize is not correctly displayed.\r\n\r\nh5. Steps to reproduce (Alloy sample)\r\nindex.xml\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nindex.tss\r\n{code}\r\n\".container\": {\r\n\tbackgroundColor:\"white\"\r\n}\r\n\r\n\"Label\": {\r\n\twidth: Ti.UI.SIZE,\r\n\theight: Ti.UI.SIZE,\r\n\tcolor: \"#000\",\r\n\tfont:{\r\n\t\tfontSize:'55dp'\r\n\t}\r\n} \r\n\r\n\"#label2\":{\r\n\tfont:{\r\n\t\tfontSize:5\r\n\t}\r\n}\r\n{code}\r\n\r\nindex.js\r\n{code}\r\n$.index.open();\r\n\r\n1. Run the sample code\r\n2. In the console: \r\n{code}[N_DEBUG] virtual int NativeAbstractTextControlObject::setFont(TiObject*) Line 142: Failed to convert font size to float with value: 55dp\r\n{code}\r\n3. On screen, 'label1' size is not reflecting the '55dp' value \r\n\r\n{code}\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "BlackBerry: failed to convert to float when using values in 'dp'", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.1.2.v20130725110651\r\nAlloy 1.2.0\r\nAppcelerator Studio 3.1.2.201307232148\r\nCLI 3.1.2\r\nNode 0.8.22", "comment": { "comments": [ { "id": "265278", "author": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_blackberry/pull/150", "updateAuthor": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-07T01:37:58.000+0000", "updated": "2013-08-07T01:37:58.000+0000" }, { "id": "279452", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\nMac OSX 10.9 Mavericks\nTitanium Studio, build: 3.2.0.201311122225\nTitanium SDK, build: 3.2.0.v20131113094843\nCLI: 3.2.0\nAlloy: 1.3.0\nBlackBerry Simulator: 10.2.0.1791\n\nLabel1 font size is set and displaying at 55dp.\nLabel2 font size is set and displaying at 5.\nSimulator displays both as expected.\n\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-13T23:55:36.000+0000", "updated": "2013-11-13T23:55:36.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }