{ "id": "149779", "key": "TIMOB-19235", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-08-13T03:14:27.000+0000", "created": "2015-07-17T22:22:32.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "label" ], "versions": [], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T22:08:52.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": "Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_END, Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_MIDDLE, Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_START are not working if you use \"left\" and \"right\" to define a label's width. Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_MARQUEE still works in such case.\r\n\r\nBefore 4.1.0, I can just set Label's ellipsize to true to show the ellipses in the end, even if I use \"left\" and \"right\" to define a label's width. On 4.1.0, ellipsize = true isn't working at all.\r\n\r\nTo re-produce, create an Alloy default project with the following:\r\n\r\nindex.xml:\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nindex.tss\r\n{code}\r\n\".container\": {\r\n\tbackgroundColor:\"white\"\r\n}\r\n\r\n\"Label\": {\r\n\tcolor: \"#000\"\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_X not working on 4.1.0 when using left and right to define width", "creator": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 4.1.0 Android 5.0", "closedSprints": [ { "id": 451, "state": "closed", "name": "2015 Sprint 16 SDK", "startDate": "2015-08-01T00:30:05.052Z", "endDate": "2015-08-15T00:30:00.000Z", "completeDate": "2015-08-17T05:55:00.386Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "357934", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "[~shawnlan] can you please attach a test case and steps to reproduce the issue?\r\n\r\nThanks", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-07-17T22:26:43.000+0000", "updated": "2015-07-17T22:26:43.000+0000" }, { "id": "357936", "author": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I updated the description. Please take a look.", "updateAuthor": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-17T22:39:57.000+0000", "updated": "2015-07-17T22:39:57.000+0000" }, { "id": "357938", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "[~shawnlan] we need a functional test case that reproduces the issue, can you please attach a runnable test case?\r\n\r\nThanks", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-07-17T22:42:25.000+0000", "updated": "2015-07-17T22:42:25.000+0000" }, { "id": "357996", "author": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Okay I updated the description with the test case. Please take a look. The problem actually only exists if you use \"left\" and \"right\" to define a label's width. See my updated description for details. Thanks.", "updateAuthor": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-20T17:34:58.000+0000", "updated": "2015-07-20T17:34:58.000+0000" }, { "id": "358060", "author": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, [~rtlechuga], I have tested this issue with the test case provided above in SDK 4.1.0.GA, It's a valid bug with SDK 4.1.0.GA and Android 5.0. Though the [release notes|http://docs.appcelerator.com/platform/release-notes/?version=4.1.0.GA] stated that the SDK has support in Android.\r\n\r\nThanks.", "updateAuthor": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-07-21T08:11:00.000+0000", "updated": "2015-07-21T08:11:00.000+0000" }, { "id": "359493", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/7014", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-10T21:47:55.000+0000", "updated": "2015-08-10T21:47:55.000+0000" }, { "id": "359767", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR Merged.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-08-13T03:14:27.000+0000", "updated": "2015-08-13T03:14:27.000+0000" }, { "id": "413281", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T22:08:52.000+0000", "updated": "2017-03-16T22:08:52.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }