{ "id": "149034", "key": "TIMOB-19236", "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": [], "resolution": null, "resolutiondate": null, "created": "2015-06-23T08:22:07.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:47.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{code:xml|title=app/views/index.xml|borderStyle=solid}\r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n{code:javascript|title=app/styles/index.tss|borderStyle=solid}\r\n\".container\": {\r\n top: '50dp',\r\n left: '30dp',\r\n right: '30dp',\r\n width: Ti.UI.FILL,\r\n contentWidth: Ti.UI.FILL,\r\n height: Ti.UI.SIZE,\r\n layout: 'vertical'\r\n}\r\n{code}\r\n\r\n{code:javascript|title=app/controllers/index.js|borderStyle=solid}\r\n$.index.open();\r\n{code}\r\n\r\n{code:xml|title=app/widgets/schedules/views/time_picker_24.xml|borderStyle=solid}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n{code:javascript|title=app/widgets/schedules/styles/time_picker_24.tss|borderStyle=solid}\r\n\"Label\": {\r\n width: Ti.UI.FILL,\r\n font: {\r\n fontSize: '30dp'\r\n }\r\n}\r\n\r\n\".label-hour\": {\r\n right: '15dp',\r\n textAlign: Ti.UI.TEXT_ALIGNMENT_RIGHT\r\n}\r\n\r\n\".label-minute\": {\r\n left: '15dp',\r\n textAlign: Ti.UI.TEXT_ALIGNMENT_LEFT\r\n}\r\n{code}\r\n\r\nThe font size of {{Label}} with text {{03}} will look different to {{Label}} with text {{11}}", "attachment": [ { "id": "56134", "filename": "scrollview.png", "author": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "created": "2015-07-09T06:36:49.000+0000", "size": 29359, "mimeType": "image/png" }, { "id": "56133", "filename": "view.png", "author": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "created": "2015-07-09T06:36:48.000+0000", "size": 30939, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Set font size on Label will cause different size", "creator": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "subtasks": [], "reporter": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "environment": "Appcelerator Studio 4.1.0.201507071122-07072015112339,\r\nTitanium CLI: 4.0.1, \r\nAlloy: 1.6.2, \r\nTitanium SDK: 4.1.0.GA, \r\nPlatform: iPhone 5 (v8.4) Simulator", "comment": { "comments": [ { "id": "355731", "author": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "body": "New update:\r\nWhile I remove the {{Label}} style on TSS, the font size still have different look.", "updateAuthor": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "created": "2015-06-23T08:43:21.000+0000", "updated": "2015-06-23T08:43:21.000+0000" }, { "id": "356730", "author": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "body": "Any update here?\r\nIt's very critical for me.", "updateAuthor": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "created": "2015-07-02T14:09:08.000+0000", "updated": "2015-07-02T14:09:08.000+0000" }, { "id": "356910", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "[~ethancfchen] we can not replicate the issue that you're seeing, can you help us trying to reproduce the issue? \r\n\r\nThanks", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-07-03T21:45:03.000+0000", "updated": "2015-07-03T21:45:03.000+0000" }, { "id": "357086", "author": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "body": "New update:\r\nThis picker is in a widget.\r\nWhen I set {{width: Ti.UI.FILL}}, this problem will happened, and it seems that the {{font}} is not working.", "updateAuthor": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "created": "2015-07-07T02:43:25.000+0000", "updated": "2015-07-07T02:50:23.000+0000" }, { "id": "357127", "author": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "body": "Finally, I found the problem.\r\nI use a {{ScrollView}} wrapped outside the widget, then the problem shows up.\r\nI will update the description in this issue.", "updateAuthor": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "created": "2015-07-07T09:01:25.000+0000", "updated": "2015-07-07T09:01:25.000+0000" }, { "id": "357130", "author": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "body": "If I change {{ScrollView}} to {{View}}, the problem will not happen", "updateAuthor": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "created": "2015-07-07T09:16:32.000+0000", "updated": "2015-07-07T09:16:32.000+0000" }, { "id": "357239", "author": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "body": "I already updated the description, please try it to replicate the issue.", "updateAuthor": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "created": "2015-07-08T02:09:08.000+0000", "updated": "2015-07-08T02:09:08.000+0000" }, { "id": "357268", "author": { "name": "pchowdhury", "key": "pchowdhury", "displayName": "Papia Chowdhury", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hi ,\r\n\r\nWe have retested the update test code. Still the font size works perfectly. Please find the link below.\r\n[http://oi58.tinypic.com/2iw0vx4.jpg].\r\n\r\n*Steps to reproduce:*\r\n\r\n1. Create an Alloy project\r\n2. Copy index.xml, index.js, index.tss to respective folders\r\n3. Create an Alloy widget named schedules\r\n4. Copy time_picker_24.tss and time_picker_24.xml to respective folders\r\n5. Run the app\r\n\r\n*Testing Environment:*\r\n\r\nAppcelerator Studio, build: 4.1.0.201507031129\r\nAlloy version: 1.6.2\r\nTitanium SDK: 4.0.0 GA\r\niOS simulator: iphone 5s(v8.1)\r\nOS X version: 10.9.5\r\n\r\nThanks.\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-07-08T08:27:47.000+0000", "updated": "2015-07-08T15:46:59.000+0000" }, { "id": "357291", "author": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "body": "Yes, I already do that, a new and clean project, still find the problem.\r\nBut my Alloy is in 1.6.0 version by the way.", "updateAuthor": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "created": "2015-07-08T16:07:17.000+0000", "updated": "2015-07-08T16:07:17.000+0000" }, { "id": "357335", "author": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "body": "I think the problem is {{contentWidth: Ti.UI.FILL}} at {{.container}},\r\nwhen I remove it, the problem gone, but the display is looking so wrong.\r\n\r\nTo prove this problem is really exist, I take a screenshot again,\r\n\r\nUsing {{ScrollView}} with {{contentWidth: Ti.UI.FILL}} is like\r\n!scrollview.png|thumbnail!\r\n\r\nUsing {{View}} is like\r\n!view.png|thumbnail!", "updateAuthor": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "created": "2015-07-09T06:38:40.000+0000", "updated": "2015-07-09T06:38:40.000+0000" }, { "id": "357449", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~ethancfchen]\r\njust remove the left and right property from the .container it will work like a charm. Or if you would like to use left and right property just remove contentWidth.\r\n\r\nThanks", "updateAuthor": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2015-07-10T10:33:38.000+0000", "updated": "2015-07-10T10:34:10.000+0000" }, { "id": "357450", "author": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "body": "I'd like to set {{left}} and {{right}} to those {{Label}} to make the {{Picker}} look like more close to the center.\r\nI think you should resolve the problem except providing a method to avoid the problem.\r\nThanks.", "updateAuthor": { "name": "ethancfchen", "key": "ethancfchen", "displayName": "Ethan Chen", "active": true, "timeZone": "Asia/Taipei" }, "created": "2015-07-10T10:46:57.000+0000", "updated": "2015-07-10T10:46:57.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }