{ "id": "164189", "key": "TIMOB-24071", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-10-26T11:51:18.000+0000", "created": "2016-10-25T15:18:00.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "label", "maxlines", "notable", "parity" ], "versions": [], "issuelinks": [ { "id": "54984", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "167974", "key": "TIMOB-24742", "fields": { "summary": "iOS: Ti.UI.Label are ellipsized by default, causing layout issues (Regression)", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-05-29T11:18:47.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": "Add support for numberOfLines property on UILabel component:\r\nhttps://developer.apple.com/reference/uikit/uilabel/1620539-numberoflines?language=objc\r\n\r\nIt should be called *maxLines* to allow a better cross-platform implementation\r\n\r\nPR: https://github.com/appcelerator/titanium_mobile/pull/8543\r\n\r\nExample:\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#ffffff'\r\n});\r\n\r\nvar testLabel = Ti.UI.createLabel({\r\n text:\"The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog\",\r\n color:'black',\r\n width:'50%',\r\n maxLines:1\r\n});\r\n\r\nwin.add(testLabel)\r\nwin.open();\r\n{code}\r\n\r\nExpected: Changing the property maxLines, the label should expand accordingly the value", "attachment": [], "flagged": false, "summary": "iOS: Expose Ti.UI.Label maxLines (Parity)", "creator": { "name": "chmiiller", "key": "chmiiller", "displayName": "Carlos Henrique Zinato", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "chmiiller", "key": "chmiiller", "displayName": "Carlos Henrique Zinato", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 741, "state": "closed", "name": "2016 Sprint 22 SDK", "startDate": "2016-10-22T00:02:29.945Z", "endDate": "2016-11-05T00:02:00.000Z", "completeDate": "2016-11-07T04:38:58.335Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "399857", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Test-case (checking getter, setter and UI-change):\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#ffffff'\r\n});\r\n\r\nvar testLabel = Ti.UI.createLabel({\r\n text: \"The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog\",\r\n color: 'black',\r\n top: 100,\r\n width: 200,\r\n maxLines: 1\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: \"Change \\\"maxLines\\\" to 3\",\r\n top: 50\r\n});\r\n\r\nbtn.addEventListener(\"click\", function() {\r\n Ti.API.warn(\"Current # of liens: \" + testLabel.getMaxLines());\r\n testLabel.setMaxLines(3);\r\n Ti.API.warn(\"New # of liens: \" + testLabel.getMaxLines());\r\n});\r\n\r\nwin.add(btn);\r\n\r\nwin.add(testLabel)\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-10-26T11:48:10.000+0000", "updated": "2016-10-26T11:48:21.000+0000" }, { "id": "399858", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~bimmel] Added the {{notable}} label to honor [~chmiiller]'s contribution in the 6.1.0 release notes.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-10-26T11:49:56.000+0000", "updated": "2016-10-26T11:49:56.000+0000" }, { "id": "401365", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified implemented, using:\r\nMacOS 10.12 (16A323)\r\nStudio 4.8.0.201611121409\r\nTi SDK 6.1.0.v20161117072812\r\nAppc NPM 4.2.9-1\r\nAppc CLI 6.1.0-13\r\nAlloy 1.9.4\r\nXcode 8.1 (8B62)\r\n\r\nVerified that maxLines can be get, set, and directly referenced as a property of a Ti.UI.Label.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-17T17:20:20.000+0000", "updated": "2016-11-17T17:20:20.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }