{ "id": "126815", "key": "TIMOB-16511", "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:19:33.000+0000", "created": "2014-02-25T10:04:54.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "ios", "merge-7.0.2" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [ { "id": "56177", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "170451", "key": "AC-5407", "fields": { "summary": "Label on iOS ellipsized when changing font", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-24T17:19:38.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": "If setting either the width or left and right values of a label the text will be truncated when you change the fontWeight of the label. If width or left and right are omitted it resizes the label correctly after changing the fontWeight. \r\n\r\nThe label container is \"showing\" the right size, but text gets truncated anyway.\r\n\r\n{code:title=Code to reproduce|borderStyle=solid}\r\nvar testLbl = Ti.UI.createLabel({\r\n\ttext: 'Some semi-long text',\r\n\tfont: {\r\n\t\tfontWeight: 'normal',\r\n\t\tfontSize: 13\r\n\t},\r\n\tbackgroundColor:'#f00',\r\n\tcolor: '#000',\r\n\ttextAlign: 'center',\r\n\ttop: 60,\r\n\t// left: 10,\r\n\t// right: 10,\r\n\twidth:'90%'\r\n});\r\nsetTimeout(function(e){\r\n\ttestLbl.font = {\r\n\t\tfontWeight: 'bold',\r\n\t\tfontSize: 13\r\n\t};\r\n\t//text gets truncated\r\n}, 1000);\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Text in label gets truncated (...) when changing fontWeight from normal to bold", "creator": { "name": "woodoo", "key": "woodoo", "displayName": "Michael Woode", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "woodoo", "key": "woodoo", "displayName": "Michael Woode", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium Studio 3.2.1.201402041146, Ti SDK 3.2.0+, iOS6 & 7 (tested on both device and simulator)", "closedSprints": [ { "id": 1028, "state": "closed", "name": "2018 Sprint 09 SDK", "startDate": "2018-04-22T22:53:08.928Z", "endDate": "2018-05-06T22:53:00.000Z", "completeDate": "2018-05-07T00:02:15.883Z", "originBoardId": 114 }, { "id": 1045, "state": "closed", "name": "2018 Sprint 13 SDK", "startDate": "2018-06-17T20:47:13.621Z", "endDate": "2018-07-01T20:47:00.000Z", "completeDate": "2018-07-02T18:40:05.029Z", "originBoardId": 114 }, { "id": 1018, "state": "closed", "name": "2018 Sprint 07 SDK", "startDate": "2018-03-25T21:59:36.637Z", "endDate": "2018-04-08T21:59:00.000Z", "completeDate": "2018-04-08T17:55:14.467Z", "originBoardId": 114 }, { "id": 1034, "state": "closed", "name": "2018 Sprint 10 SDK", "startDate": "2018-05-07T00:03:21.636Z", "endDate": "2018-05-21T00:03:00.000Z", "completeDate": "2018-05-20T20:54:58.928Z", "originBoardId": 114 }, { "id": 1035, "state": "closed", "name": "2018 Sprint 11 SDK", "startDate": "2018-05-20T20:57:43.542Z", "endDate": "2018-06-03T20:57:00.000Z", "completeDate": "2018-06-04T15:13:14.425Z", "originBoardId": 114 }, { "id": 1021, "state": "closed", "name": "2018 Sprint 08 SDK", "startDate": "2018-04-08T17:57:36.122Z", "endDate": "2018-04-22T17:57:00.000Z", "completeDate": "2018-04-22T22:51:19.120Z", "originBoardId": 114 }, { "id": 1039, "state": "closed", "name": "2018 Sprint 12 SDK", "startDate": "2018-06-03T15:22:23.401Z", "endDate": "2018-06-17T15:22:00.000Z", "completeDate": "2018-06-18T20:45:36.363Z", "originBoardId": 114 }, { "id": 1008, "state": "closed", "name": "2018 Sprint 06 SDK", "startDate": "2018-03-11T22:18:04.396Z", "endDate": "2018-03-25T22:18:00.000Z", "completeDate": "2018-03-25T21:52:36.683Z", "originBoardId": 216 } ], "comment": { "comments": [ { "id": "294743", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I believe it has more to do with changing the fontWeight dynamically from \"normal\" to \"bold\". If you set the fontWeight to Bold initially and then change it to Bold dynamically then also it works fine. So it appears that the size is being not calculated when the fontWeight changes.\n\n", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-26T04:51:16.000+0000", "updated": "2014-02-26T04:51:16.000+0000" }, { "id": "294744", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to engineering as I can reproduce this issue with the following test case.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({fullscreen:true}); \r\n\r\nvar testLbl = Ti.UI.createLabel({\r\n text: 'Some semi-long text for testing',\r\n font: {\r\n fontWeight: 'normal',\r\n fontSize: 13\r\n },\r\n backgroundColor:'#f00',\r\n color: '#000',\r\n textAlign: 'center',\r\n top: 60,\r\n left: 10,\r\n right: 10,\r\n width:'90%'\r\n});\r\n\r\nwin.add(testLbl);\r\n\r\n\r\nwin.addEventListener('open',function(){\r\n\tsetTimeout(function(e){\r\n\t testLbl.font = {\r\n\t fontWeight: 'bold',\r\n\t fontSize: 13\r\n\t };\r\n\t //text gets truncated\r\n\t}, 2000);\r\n});\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-26T04:53:44.000+0000", "updated": "2014-02-26T04:53:44.000+0000" }, { "id": "320311", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces on SDK Version 3.2.1 and 3.4.0\r\n\r\nTitanium Command-Line Interface, \r\nCLI version 3.3.0, \r\nTitanium SDK version 3.2.1.GA \r\nTitanium SDK version 3.4.0.GA \r\nAppcelerator Studio, build: 3.3.0.201407111535 \r\niOS SDK: 7\r\niOS iPhone Simulator: 7", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-26T07:52:59.000+0000", "updated": "2014-08-26T07:52:59.000+0000" }, { "id": "431437", "author": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "body": "This bug is triggered event if I set de fontFamily by its current value : $.label.font.fontFamily = $.label.font.fontFamily", "updateAuthor": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-29T09:31:57.000+0000", "updated": "2017-11-29T09:31:57.000+0000" }, { "id": "435411", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/9923", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-09T06:43:24.000+0000", "updated": "2018-03-09T06:43:24.000+0000" }, { "id": "439314", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*, Verified fix in SDK Version: {{7.4.0.v20180717131401}}\r\n\r\n*FR Passed (Test Steps):*\r\n# Created a titanium application \r\n# Added the following code above in the {{app.js}}\r\n# Ran the application\r\n# Application text no longer truncated when changing the 'fontWeight' to bold from normal \r\n\r\n*Test Environment*\r\n{code:java}\r\nAPPC Studio: 5.0.0.201712081732\r\nAPPC CLI: 7.0.4\r\niPhone 6 simulator (11.2)\r\nOperating System Name: Mac OS High Sierra\r\nOperating System Version: 10.13\r\nNode.js Version: 8.9.1\r\nXcode 9.2\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-07-18T19:29:32.000+0000", "updated": "2018-07-18T19:29:32.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }