{ "id": "168114", "key": "AC-5011", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2017-06-21T19:58:59.000+0000", "created": "2017-06-06T09:47:41.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-22T10:46:29.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Using Titanium SDK 6.1.0.GA, when a label with a fixed height and width has a minimumFontSize set and text long enough to exceed with width of the label, the font size seems to increase.", "attachment": [], "flagged": false, "summary": "Android: Label with minimumFontSize set, fontSize increases when text too long.", "creator": { "name": "donald.anderson", "key": "donald.anderson", "displayName": "Donald Anderson", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "donald.anderson", "key": "donald.anderson", "displayName": "Donald Anderson", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "421079", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~donald.anderson] I tried to create a minimum reproducible test case for this but I'm unable to see the behaviour your describing. Here's my code, the minimumFontSize appears to be respected to me. Could you confirm whether I am attempting to reproduce the issue correctly?\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n title: 'Window',\r\n backgroundColor: '#fff'\r\n});\r\nvar label = Ti.UI.createLabel({\r\n text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque dignissim metus et porttitor auctor.',\r\n color: \"#333\",\r\n minimumFontSize: 6,\r\n width: 10,\r\n height: 250\r\n});\r\nwin.add(label);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-06-06T13:07:41.000+0000", "updated": "2017-06-06T13:07:41.000+0000" }, { "id": "422458", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, can you share a full reproducible code?", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-06-21T13:51:54.000+0000", "updated": "2017-06-21T13:51:54.000+0000" }, { "id": "422545", "author": { "name": "donald.anderson", "key": "donald.anderson", "displayName": "Donald Anderson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "\r\nvar win = Ti.UI.createWindow({\r\n title: 'Window',\r\n backgroundColor: '#fff'\r\n});\r\nvar view = Ti.UI.createView({});\r\nvar label = Ti.UI.createLabel({\r\n\ttext:\"Revision: Seventeen\",\r\n\tfont: {\r\n\t\tfontSize: 13,\r\n\t\tfontFamily: \"OpenSans\"\r\n\t},\r\n\tcolor: \"#262626\",\r\n\theight: 22,\r\n\ttop: 50,\r\n\tleft: 50,\r\n\twidth: 90,\r\n\theight: 22,\r\n\twordWrap: false,\r\n\tellipsize: Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_END,\r\n\tbackgroundColor:\"#bbb\"\r\n});\r\nvar label2 = Ti.UI.createLabel({\r\n\ttext:\"Revision: Seventeen\",\r\n\tfont: {\r\n\t\tfontSize: 13,\r\n\t\tfontFamily: \"OpenSans\"\r\n\t},\r\n\tminimumFontSize: 13,\r\n\tcolor: \"#262626\",\r\n\theight: 22,\r\n\ttop: 100,\r\n\tleft: 50,\r\n\twidth: 90,\r\n\theight: 22,\r\n\twordWrap: false,\r\n\tellipsize: Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_END,\r\n\tbackgroundColor:\"#bbb\"\r\n});\r\nview.add(label);\r\nview.add(label2);\r\nwin.add(view)\r\nwin.open();\r\n\r\nI'm adding two labels here, one with a minimum font size set and one without. If you run this on an iOS device you should see the first label ellipsizes before the end of the label, adding a minimum font size works around this. If you build this on android however you should see the font size of the second label has increased.", "updateAuthor": { "name": "donald.anderson", "key": "donald.anderson", "displayName": "Donald Anderson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-22T10:46:29.000+0000", "updated": "2017-06-22T10:46:29.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }