{ "id": "98011", "key": "TIMOB-10144", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2012-08-07T16:48:00.000+0000", "created": "2012-07-25T15:35:47.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-01-29T00:03:08.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "h4. Request ellipsize at last line of Ti.UI.Label while still using wordWrap\r\n\r\nCurrently, in order to make a label use ellipsize we have to set wordWrap to false.\r\nOur project requires a multilined label that ends with an ellipsize.\r\nWe could do this with multiple labels, but it is used often enough and should be less resource intensive\r\nto simply add this functionality to Label.\r\n\r\nh4. Example code\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'#555'\r\n});\r\nvar label = Ti.UI.createLabel({\r\n\tbackgroundColor: '#FFF',\r\n\tborderWidth: 1,\r\n\tborderColor: '#000',\r\n\twidth: 200,\r\n\theight: 44,\r\n\tfontSize: 14,\r\n\tellipsize: true,\r\n\twordWrap: true,\r\n\tverticalAlign: Ti.UI.TEXT_VERTICAL_ALIGNMENT_TOP,\r\n\ttext: 'I used to be an adventurer like you until I took an arrow to the knee'\r\n});\r\nwin.add(label);\r\nwin.open();\r\n{code}\r\n\r\nThe desired effect is a label with 2 lines\r\n{code}\r\nI used to be an adventurer\r\nlike you until I took an...\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: Label - Request ellipsize on multiline label", "creator": { "name": "amiller", "key": "amiller", "displayName": "Alexander Miller", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amiller", "key": "amiller", "displayName": "Alexander Miller", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 2.2.0v20120723112115\r\nGoogle Chrome Version 20.0.1132.57\r\nInternet Explorer 9 Version 9.0.8112.16421", "comment": { "comments": [ { "id": "213260", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unfortunately we can't implement this feature because there simply is no way to do it. The \"text-overflow\" CSS property must be set to \"nowrap\" in order for ellipses to appear. For more information see http://www.quirksmode.org/css/textoverflow.html", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-07T16:48:00.000+0000", "updated": "2012-08-07T16:48:00.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }