{ "id": "111572", "key": "TIMOB-13220", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-04-14T23:28:53.000+0000", "created": "2013-03-23T15:30:33.000+0000", "priority": null, "labels": [ "android", "label", "module_label", "qe-testadded", "regression" ], "versions": [], "issuelinks": [ { "id": "27760", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "99071", "key": "TIMOB-10429", "fields": { "summary": "Android: Animate doesn't redraw label when width is larger than parent window", "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 } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-15T23:42:05.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": "h2. Problem\r\n\r\nSetting width property of label does nothing, and ellipsize stopped working because of it.\r\n\r\nThis works with Ti SDk 3.1.0.v20130304xxxx\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow();\r\n\r\n\r\nwin.add(Ti.UI.createLabel({\r\n\ttext: 'this is some text that should ellipsize because it is too long',\r\n\twidth: 100,\r\n\theight: 25,\r\n\tcolor: 'white',\r\n\tellipsize: true,\r\n\twordWrap: false,\r\n\tbackgroundColor: 'pink'\r\n}));\r\n\r\n\r\nwin.open();\r\n\r\n\r\n{code}", "attachment": [ { "id": "36607", "filename": "Screenshot_2013-03-23-11-27-46.png", "author": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "created": "2013-03-23T15:30:33.000+0000", "size": 19951, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Can not set width on label and ellipsize no longer works", "creator": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "environment": "Android 2.3.x, 4.x\r\nTi SDK 3.1.0.v20130322095254\r\nMac OSX", "comment": { "comments": [ { "id": "243963", "author": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Works correctly when label is created before being added to window, which it should be.\n\nTested with code below and ellipsize works fine\n{code}\nvar win = Ti.UI.createWindow({\n\tbackgroundColor: 'black'\n});\n \nvar label1 = Ti.UI.createLabel({\n text: 'this is some text that should ellipsize because it is too long',\n width: 100,\n height: 25,\n color: 'white',\n ellipsize: true,\n wordWrap: false,\n backgroundColor: 'pink'\n});\n\n win.add(label1)\n \nwin.open();\n{code}", "updateAuthor": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-25T18:10:33.000+0000", "updated": "2013-03-25T18:10:33.000+0000" }, { "id": "244108", "author": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "updateAuthor": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "created": "2013-03-26T14:21:21.000+0000", "updated": "2013-03-26T14:21:21.000+0000" }, { "id": "247486", "author": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "body": "I thought maybe I'll bring this up again since 3.1.0 is about to be released. It's still broken with the latest CI build (3.2.0 and 3.1.0) on Apr 11.\r\n\r\nIt's going to break any app that uses ellipsis on android.", "updateAuthor": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "created": "2013-04-14T15:19:00.000+0000", "updated": "2013-04-14T15:19:00.000+0000" }, { "id": "247497", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4159\n\nBackport to 3_1_X: https://github.com/appcelerator/titanium_mobile/pull/4160", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-14T20:24:12.000+0000", "updated": "2013-04-14T20:24:12.000+0000" }, { "id": "247531", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\nSDK: 3.1.0.v20130414163049\nTitanium Studio:3.1.0.201304141748\nDevice: Samgung galaxy note(2.3.6)\nOS: OSX 10.7.5\n\nEllipsis works fine on above env.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-15T11:49:57.000+0000", "updated": "2013-04-15T11:49:57.000+0000" }, { "id": "275229", "author": { "name": "ygoldfeld", "key": "ygoldfeld", "displayName": "Yuri Goldfeld", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The fix above does not fully fix the bug. It works when .width is specified. It fails to work when width is specified indirectly via .left and .right instead. As a work-around, one may specify .width (e.g., as Ti.UI.FILL) AND .left and .right to be specific values.\r\n\r\nI would advise reopening this ticket.", "updateAuthor": { "name": "ygoldfeld", "key": "ygoldfeld", "displayName": "Yuri Goldfeld", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-15T23:42:05.000+0000", "updated": "2013-10-15T23:42:05.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }