{ "id": "76370", "key": "TIMOB-4404", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-20T13:40:13.000+0000", "created": "2011-06-14T11:15:34.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "parity" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-21T11:14:36.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h2. Actual Result:\r\nThe label is filling the entire parent view space\r\n\r\nh2. Expected Result:\r\nShould auto size to content\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white',\r\n\tfullscreen: false\r\n});\r\n\r\nvar bigNumber = 324;\r\nvar label = Ti.UI.createLabel({\r\n\tbackgroundColor:'green',\r\n\ttext: bigNumber,\r\n\ttextAlign: 'center'\r\n});\r\n\r\nwin.add(label);\r\nwin.open();\r\n{code}\r\n\r\nh2. Test case 2\r\n\r\nRun test 1065 from http://wiki.appcelerator.org/display/tp/UI+Composite+Layout+Behavior+Test+Case\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: UI.Label - label fills entire view space rather than auto-sizing to text", "creator": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium 1.7.0.64155ee\r\n* Simulator 4.3\r\n", "comment": { "comments": [ { "id": "187478", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed as part of composite layout implementation", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-20T13:40:13.000+0000", "updated": "2012-03-20T13:40:13.000+0000" }, { "id": "187744", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.0.0.v20120321071752 on Motorola Xoom (4.0.2) and iPhone 4 (4.3.5)", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-21T11:14:36.000+0000", "updated": "2012-03-21T11:14:36.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }