{ "id": "91401", "key": "TIMOB-9004", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-05-21T12:08:14.000+0000", "created": "2012-05-05T13:11:34.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-30T21:25:37.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": "Label widget cuts off long strings when width property is set. Here is the sample code the customer provided:\r\n\r\nProblem Scenario\r\n----------------\r\nTi.UI.createLabel({\r\n left: 11,\r\n top: 10,\r\n bottom: 10,\r\n color: \"#2e0333\",\r\n font: {\r\n fontSize: 14\r\n },\r\n width: 280,\r\n touchEnabled: false,\r\n height: Ti.UI.SIZE,\r\n text:'Very long string...'\r\n }\r\n)\r\n\r\n\r\nWorkaround Scenario (set width to .SIZE and add a right property)\r\n-------------------\r\n\r\nTi.UI.createLabel({\r\n left: 11,\r\n top: 10,\r\n bottom: 10,\r\n color: \"#2e0333\",\r\n font: {\r\n fontSize: 14\r\n },\r\n width: Ti.UI.SIZE,\r\n right: 11\r\n touchEnabled: false,\r\n height: Ti.UI.SIZE,\r\n text:'Very long string...'\r\n }\r\n)\r\n", "attachment": [], "flagged": false, "summary": "Android: Label widget cuts off long strings when width property is set", "creator": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "193878", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Try it out on both iOS and Android platforms before marking this bug resolved.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-05T13:16:19.000+0000", "updated": "2012-05-05T13:16:19.000+0000" }, { "id": "195477", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tried the fail case and the workaround in iOS/Android. I get the same behavior for both of them. The text as not cut off in either case.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-21T12:08:14.000+0000", "updated": "2012-05-21T12:08:14.000+0000" }, { "id": "416393", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as I am unable to reproduce the issue using the following environment; \r\nPixel (7.1) \r\nMacOS 10.11.6 (15G31) \r\nStudio 4.8.1.201612050850 \r\nTi SDK 6.0.3 GA \r\nAppc NPM 4.2.8 \r\nAppc CLI 6.1.0 \r\nTi CLI 5.0.11 \r\nAlloy 1.9.5 \r\nArrow 1.10.1 \r\nXcode 8.2 (8C38) \r\nNode v4.6.0 \r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-30T21:25:37.000+0000", "updated": "2017-03-30T21:25:37.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }