{ "id": "168533", "key": "TIMOB-24865", "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-20T19:16:53.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "engSchedule", "label" ], "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": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-06-18T23:31:35.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Summary:*\r\nIf a label is set up with width \"Ti.UI.SIZE\" and is using \"minimumFontSize\" to auto-downscale the font, then the font will never increase in size (up to the default font size) when the parent view's width increases.\r\n\r\n*Steps to reproduce:*\r\n# Build the below code for Android.\r\n# Launch the app in landscape mode.\r\n# Rotate the device to portrait.\r\n# Notice that the label's font has been downscaled to fit. (This is correct behavior.)\r\n# Rotate the device back to landscape.\r\n# Notice that the label's font size has not increase in size to fit the screen. (This is a bug.)\r\n\r\n{code:javascript}\r\nvar window = Ti.UI.createWindow({ backgroundColor: \"gray\" });\r\nwindow.add(Ti.UI.createLabel(\r\n{\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: Ti.UI.SIZE,\r\n}));\r\nwindow.open();\r\n{code}\r\n\r\n*Expected Result:*\r\nLabel should auto-scale the font up to the default font size (the maximum) every time the parent's width has changed when the label is set up for \"Ti.UI.SIZE\".\r\n\r\n*Work-around:*\r\nSetting the Label width to \"100%\" will auto-scale the font correctly when the parent width increases/decreases in size.", "attachment": [], "flagged": false, "summary": "Android: Label width won't auto-size larger after font has been downscaled", "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": [ { "id": "448379", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have confirmed that this issue still happens with Titanium 8.0.0 on Android 9.0.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-05-14T22:54:41.000+0000", "updated": "2019-05-14T22:54:41.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }