{ "id": "88950", "key": "TIMOB-8328", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13400", "description": "Sprint 2012-12 Mobile Web", "name": "Sprint 2012-12 MW", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-05T13:09:03.000+0000", "created": "2012-03-27T11:01:06.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "mw-list", "qe-port" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-08T16:27:48.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "h2. Problem\r\n\r\nMobileweb does not translate string values for {{fontSize}} into the appropriate integer values. Android and iOS do this automatically. This likely impacts other properties, but this is how it surfaced for me.\r\n\r\nh2. Test Case\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nwin.add(Ti.UI.createLabel({\r\n text: 'Hello, World!',\r\n font: {\r\n fontSize: '32' // Will automatically become an integer on android and ios, does not on mobileweb\r\n }\r\n}));\r\nwin.open();\r\n{code} \r\n\r\nThe result on Android and iOS will be a label with a font size of 32. On mobileweb, I'm guessing it doesn't recognize the string value and then just uses the default font size to display the label. Changing {{'32'}} to simply {{32}} allows mobileweb to resize correctly. ", "attachment": [], "flagged": false, "summary": "Mobileweb: Ti.UI.Label doesn't handle string values for `fontSize`", "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": "Mac OSX 10.7.3\r\nTiStudio 2.0.0.201203262445\r\nTiSDK 2.0.0.v20120326180408", "comment": { "comments": [ { "id": "197325", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2327\r\n\r\nNote: make sure to set a background color on the window when running the above test case, otherwise you just get a black screen and can't see the text.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-05T11:17:56.000+0000", "updated": "2012-06-05T11:17:56.000+0000" }, { "id": "213240", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tested On:\r\nTitanium studio : 2.1.1.201207271312\r\nSDK version : 2.2.0.v20120807070117\r\nAndroid 4.0.4 - default ,chrome 18.0\r\nIphone 4.3.5 - safari mobile\r\nMountain lion(10.8) - chrome 21.0,safari 5.1.4,firefox 14.0.1", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-07T15:52:21.000+0000", "updated": "2012-08-07T15:52:21.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }