{ "id": "63404", "key": "TIMOB-2772", "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": "11237", "name": "Release 1.6.0 M04", "archived": true, "released": true, "releaseDate": "2011-01-10" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:00:03.000+0000", "created": "2011-04-15T03:29:08.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "enterprise", "regression", "release-1.6.0", "reported-1.6.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-17T02:00:03.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": "{html}
If you have a ScrollView then add a view to it -- and that view\nhas no width
property or width='auto'
--\nthe application will crash when the child view is added to the\nScrollView.
Failcase app.js:
\n\nTitanium.UI.setBackgroundColor('#000');\nvar win = Titanium.UI.createWindow({ \n title:'Test',\n backgroundColor:'#fff',\n exitOnClose: true\n});\n\nvar sv = Ti.UI.createScrollView({\n contentWidth: 'auto',\n contentHeight: 'auto',\n height: 'auto',\n top: 0,\n backgroundColor: 'blue'\n});\n\nvar v = Ti.UI.createView({\n backgroundColor: 'yellow',\n top: 0,\n height: 100\n});\n\nv.add(Ti.UI.createLabel({text: 'ScrollView child successfully added'}));\n\nsv.add(v);\nwin.add(sv);\nwin.open();
\n
(from [f80836f22c8f978e2b890519202b938b592ecfc2])\n[#2772 state:fixed-in-qa] Fix what looks like\naccidental code checking autoHeight when it should be checking\nautoWidth \nhttps://github.com/appcelerator/titanium_mobile/commit/f80836f22c8f...
iOS 4.2; G1 (1.6) Droid 1 (2.2.1). [INFO] Titanium SDK version: 1.6.0 (01/10/11\n08:25 3452f06)