{ "id": "103398", "key": "TIMOB-11487", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14788", "description": "2012 Sprint 26 Core", "name": "2012 Sprint 26 Core", "archived": true, "released": true, "releaseDate": "2012-12-31" }, { "id": "14786", "description": "2012 Sprint 26", "name": "2012 Sprint 26", "archived": true, "released": true, "releaseDate": "2012-12-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-01-24T10:05:47.000+0000", "created": "2012-10-15T11:47:03.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "core", "module_button", "qe-and100112", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "24686", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "108100", "key": "TIMOB-12336", "fields": { "summary": "Backport TIMOB-11487 to 3.0.2", "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": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-01-24T10:05:47.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": "This is not a regression. It exists as far as 2.0.1.\r\n\r\nSteps to reproduce:\r\n1. Use the code below in app.js\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nwin.backgroundColor = 'white';\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext: 'Buttons should auto size to text, but stay within red',\r\n\ttop: 20,\r\n\tleft: 10,\r\n\theight: Ti.UI.SIZE,\r\n\twidth: Ti.UI.SIZE,\r\n\tcolor: 'black'\r\n});\r\n\r\nvar outlineView3 = Ti.UI.createView({\r\n\theight: 62,\r\n\twidth: 152,\r\n\ttop: 280,\r\n\tbackgroundColor: 'red'\r\n});\r\nvar view3 = Ti.UI.createView({\r\n\theight: 60,\r\n\twidth: 150\r\n});\r\nvar button3 = Ti.UI.createButton({\r\n\ttitle: 'VeryLongButtonText1234567890 '\r\n});\r\nview3.add(button3);\r\noutlineView3.add(view3);\r\n\r\nwin.add(label);\r\nwin.add(outlineView3);\r\nwin.open();\r\n{code}\r\n2. Run the app\r\n\r\nExpected result:\r\n1. The text of the button should be contained within the button. It should not spill over the parent view.\r\n\r\nActual result:\r\n1. The button text spills over to the parent view. It view is attached with bug.", "attachment": [ { "id": "32637", "filename": "ButtonTextSpillingOut.png", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-15T11:47:03.000+0000", "size": 32181, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Text of the button spills over to the parent view if its too long", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: 3.0.0.v20121014181609\r\nTitanium Studio: 3.0.0.201210141844\r\nDevice : LG-P970 Android 2.2.2,Samsung Galaxy Nexus Android 4.0.2\r\nXcode : 4.5 \r\nMachine OS : MAC 10.8", "comment": { "comments": [ { "id": "231791", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/3536", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-18T01:20:40.000+0000", "updated": "2012-12-18T01:20:40.000+0000" }, { "id": "234884", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\r\nSDK:3.1.0.v20130114171802\r\nStudio:3.0.1.201212181159\r\nDevice: Samsung Galaxy nexus(v 4.0.2), LG-p970(v 2.2.2)", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-18T01:48:16.000+0000", "updated": "2013-01-18T01:48:16.000+0000" }, { "id": "234993", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "reopen to update lables", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-18T17:07:03.000+0000", "updated": "2013-01-18T17:07:03.000+0000" }, { "id": "235264", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport Task TIMOB-12336\r\nBackport PR https://github.com/appcelerator/titanium_mobile/pull/3737", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-21T22:12:41.000+0000", "updated": "2013-01-21T22:12:41.000+0000" }, { "id": "235702", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-24T10:05:19.000+0000", "updated": "2013-01-24T10:05:19.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }