{ "id": "161022", "key": "TIMOB-23500", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-08-24T03:29:54.000+0000", "created": "2016-06-10T19:52:30.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity" ], "versions": [], "issuelinks": [ { "id": "52016", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "161021", "key": "TIMOB-23499", "fields": { "summary": "Android: Ti.UI.Label.wordWrap should default to true, but is undefined", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "52018", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "161023", "key": "TIMOB-23501", "fields": { "summary": "iOS: Ti.UI.Label.ellipsize should default to Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_END, but is undefined", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "52017", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "155985", "key": "TIMOB-20624", "fields": { "summary": "Parity: Combine unit tests for SDKs into common suite/repo", "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": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-08-29T22:18:14.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": "According to docs, it should default to false.\r\n{code:javascript}\r\nit('ellipsize', function () {\r\n\t\tvar label = Ti.UI.createLabel({\r\n\t\t\ttext: 'this is some text'\r\n\t\t});\r\n\t\tshould(label.ellipsize).be.a.Boolean; // undefined on Android\r\n\t\tshould(label.getEllipsize).be.a.Function;\r\n\t\tshould(label.ellipsize).eql(false);\r\n\t\tshould(label.getEllipsize()).eql(false);\r\n\t\tlabel.ellipsize = true;\r\n\t\tshould(label.getEllipsize()).eql(true);\r\n\t\tshould(label.ellipsize).eql(true);\r\n\t});\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Ti.UI.Label.ellipsize should default to TruncateAt.END, but is undefined", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 695, "state": "closed", "name": "2016 Sprint 17 SDK", "startDate": "2016-08-13T00:00:16.620Z", "endDate": "2016-08-27T00:00:00.000Z", "completeDate": "2016-08-29T03:18:08.942Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "389282", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/8094\r\n\r\nI've put the default value to {{false}} since it is allowed to set it to {{true}} = TruncateAt.END and {{false}} = null (default; turn off ellipsizing)", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-06-28T17:19:55.000+0000", "updated": "2016-06-28T17:19:55.000+0000" }, { "id": "389288", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Adding: {{Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_NONE}}\r\nDefault: {{Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_END}}\r\n\r\n\r\n{code:java}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win1 = Titanium.UI.createWindow({\r\n title: 'win',\r\n backgroundColor: '#fff'\r\n});\r\nvar label1 = Titanium.UI.createLabel({\r\n color: '#999',\r\n text: 'I am Window 1',\r\n font: {\r\n fontSize: 20,\r\n },\r\n width: 80,\r\n top: 1,\r\n wordWrap:false\r\n});\r\nvar label2 = Titanium.UI.createLabel({\r\n color: '#999',\r\n text: 'I am Window 1',\r\n font: {\r\n fontSize: 20,\r\n },\r\n width: 80,\r\n top: 100,\r\n wordWrap:false\r\n});\r\n\r\nconsole.info(\"Is label1 truncate at end? \" + (label1.ellipsize == Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_END));\r\nlabel2.setEllipsize(Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_NONE);\r\nconsole.info(\"Is label2 truncate at end? \" + (label2.ellipsize == Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_END));\r\n\r\nwin1.add(label1);\r\nwin1.add(label2);\r\n\r\nwin1.open();\r\n\r\n{code}\r\n\r\nwill output:\r\n{{Is label1 truncate at end? true}}\r\n{{Is label2 truncate at end? false}}\r\n\r\nDefault on top, _NONE at the bottom:\r\n!http://migaweb.de/ellipsize.png!", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-06-28T18:04:58.000+0000", "updated": "2016-06-28T18:09:03.000+0000" }, { "id": "393915", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR is merged and this is fixed. But unit test need to be updated. PR coming for that.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-23T09:19:38.000+0000", "updated": "2016-08-23T09:19:38.000+0000" }, { "id": "394031", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR here: https://github.com/appcelerator/titanium-mobile-mocha-suite/pull/2", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-24T03:29:44.000+0000", "updated": "2016-08-24T03:29:44.000+0000" }, { "id": "394705", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.8.0.201608221113\r\nTi SDK : 6.0.0.v20160829005859\r\nTi CLI : 5.0.9\r\nAlloy : 1.9.1\r\nMAC El Capitan : 10.11.6\r\nAppc NPM : 4.2.7\r\nAppc CLI : 6.0.0-31\r\nNode: 4.4.4\r\nNexus 6 - Android 6.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-29T22:17:40.000+0000", "updated": "2016-08-29T22:17:54.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }