{ "id": "171524", "key": "TIMOB-25971", "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": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-08-24T17:30:38.000+0000", "created": "2018-04-17T01:44:39.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ios", "label", "minimumFontSize" ], "versions": [ { "id": "18322", "name": "Release 5.5.1", "archived": false, "released": true, "releaseDate": "2016-09-28" }, { "id": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" }, { "id": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-24T17:30:50.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "We've observed this problem for quite a while (I think it might also be in SDK 5.5) but it was one of those \"am I seeing things or is this really happening?\" bugs. I finally sat down and ran some test cases and it is really happening. As the attached test code shows, set the original font size such that the string does not fit the width of the label. Then steadily decrease minimumFontSize until the string fits. The string eventually fits into the label but the baseline of the text drops a little bit every time minimumFontSize is decreased. We set borderWidth to 2 so that you can see the text move relative to the boundaries of the label.\r\n\r\nWe have several apps that require this functionality - it used to work properly somewhere in the SDK 5 generation.\r\n\r\nThe same code runs correctly on Android 7.1 (see screenshot)", "attachment": [ { "id": "65053", "filename": "Label.zip", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-17T01:42:28.000+0000", "size": 5548907, "mimeType": "application/zip" }, { "id": "65369", "filename": "Screen Shot 2018-07-20 at 17.32.21.png", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-07-20T16:34:30.000+0000", "size": 77268, "mimeType": "image/png" }, { "id": "65052", "filename": "Screen Shot Android.png", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-17T01:43:11.000+0000", "size": 45241, "mimeType": "image/png" }, { "id": "65054", "filename": "Simulator Screen Shot - iPhone 6 - 2018-04-16 at 18.22.40.png", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-17T01:29:53.000+0000", "size": 56056, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: minimumFontSize property in Ti.UI.label lowers text baseline as it decreases", "creator": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacOS High Sierra, Ti Studio 5.0, SDK 7.1 & 6.3", "closedSprints": [ { "id": 1065, "state": "closed", "name": "2016 Sprint 17 SDK", "startDate": "2018-08-13T17:39:36.846Z", "endDate": "2018-08-27T17:39:00.000Z", "completeDate": "2018-08-29T16:10:57.013Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "436986", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR : https://github.com/appcelerator/titanium_mobile/pull/10006\r\n\r\nTest-Case: [^Label.zip] ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-04-19T05:12:58.000+0000", "updated": "2018-04-19T05:39:58.000+0000" }, { "id": "436988", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~jfalcone] A core-fix is pending via pull request. You can patch your SDK today to get around the issue and the fix will land in Titanium SDK 7.3.0, since 7.1.1 and 7.2.0 are already closed for new tickets. Thanks!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-04-19T05:41:18.000+0000", "updated": "2018-04-19T05:41:18.000+0000" }, { "id": "439375", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-07-20T16:34:47.000+0000", "updated": "2018-07-20T16:34:47.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }