{ "id": "137747", "key": "TIMOB-17827", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-06-17T03:47:59.000+0000", "created": "2014-10-07T20:20:42.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "supportTeam" ], "versions": [], "issuelinks": [], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2017-03-16T21:53:58.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h3. Request\r\n\r\nCurrently on Titanium.UI.Label, there is no property to support max.Lines or number of lines similar to Android, customer would like to have this feature enabled.\r\n\r\nandroid:lines \r\nhttp://developer.android.com/reference/android/widget/TextView.html#attr_android:lines \r\n\r\nandroid:maxLines \r\nhttp://developer.android.com/reference/android/widget/TextView.html#attr_android:maxLines ", "attachment": [], "flagged": false, "summary": "Android: support for android:lines and android:maxLines", "creator": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 416, "state": "closed", "name": "2015 Sprint 12 SDK", "startDate": "2015-06-06T00:00:43.862Z", "endDate": "2015-06-20T00:00:00.000Z", "completeDate": "2015-06-23T05:41:35.834Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "327427", "author": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/6209\r\n\r\ntest code:\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n layout: 'vertical'\r\n});\r\n\r\nvar label1 = Ti.UI.createLabel({\r\n top: 50,\r\n text: \"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.\",\r\n width: 200,\r\n height: Ti.UI.SIZE,\r\n lines: 3\r\n});\r\n\r\nlabel1.addEventListener('singletap', function(){\r\n label1.setLines(1);\r\n});\r\nwin.add(label1);\r\n\r\nvar label2 = Ti.UI.createLabel({\r\n top: 50,\r\n text: \"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.\",\r\n width: 200,\r\n height: Ti.UI.SIZE,\r\n maxLines: 3\r\n});\r\n\r\nlabel2.addEventListener('singletap', function(){\r\n label2.setMaxLines(1);\r\n});\r\nwin.add(label2);\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-10-09T13:39:38.000+0000", "updated": "2014-11-17T21:47:03.000+0000" }, { "id": "332579", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I believe the test code is slightly incorrect (note misspelling of \"heigth\")", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-17T21:36:30.000+0000", "updated": "2014-11-17T21:36:30.000+0000" }, { "id": "332580", "author": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "body": "@ingo Corrected it! (doesn't affect the result here)", "updateAuthor": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-11-17T21:49:54.000+0000", "updated": "2014-11-17T21:49:54.000+0000" }, { "id": "355309", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Updated PR: https://github.com/appcelerator/titanium_mobile/pull/6917", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-06-17T03:32:37.000+0000", "updated": "2015-06-17T03:32:37.000+0000" }, { "id": "413211", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue has been fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T21:53:58.000+0000", "updated": "2017-03-16T21:53:58.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }