{ "id": "168531", "key": "TIMOB-24864", "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": "2017-06-20T17:43:08.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "engSchedule", "ios", "label", "ui" ], "versions": [ { "id": "19572", "description": "Important fixes for 6.1.0", "name": "Release 6.1.1", "archived": false, "released": true, "releaseDate": "2017-06-16" }, { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "issuelinks": [], "assignee": null, "updated": "2019-05-14T15:35:08.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": "*Summary:*\r\nWhen using a Label's \"minimumFontSize\" feature to downscale the text to fit the view's width, the height of the view does not automatically resize itself to fit the text when downscaled.\r\n\r\n*Reproducible Case:*\r\nRun the following code on iOS...\r\n\r\n{code:javascript}\r\nvar window = Ti.UI.createWindow({ backgroundColor: \"gray\" });\r\nwindow.add(Ti.UI.createLabel({\r\n\ttext: \"Hello World!\",\r\n\tcolor: \"white\",\r\n\tbackgroundColor: \"black\",\r\n\tfont: { fontSize: 200 },\r\n\tminimumFontSize: 10,\r\n\twidth: \"80%\",\r\n\theight: Ti.UI.SIZE,\r\n}));\r\nwindow.open();\r\n{code}\r\n\r\n*Result:*\r\nThe height of the label view is the size of the default font size instead of the downscaled font size its actually using. This can be identified by the black background the label is using.\r\n\r\n*Expected Result:*\r\nThe height should match the font size the label is currently using to render its text.", "attachment": [ { "id": "62711", "filename": "Screenshot.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-20T17:47:03.000+0000", "size": 44202, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Label does not auto-size height to fit downscaled text", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [], "maxResults": 3, "total": 3, "startAt": 0 } } }