{ "id": "63068", "key": "TIMOB-2436", "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": "11229", "name": "Release 1.5.0 M04", "archived": true, "released": true, "releaseDate": "2010-12-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-18T23:10:44.000+0000", "created": "2011-04-15T03:19:49.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "regression", "scrollable", "view" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-18T23:10:44.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}

Environment: ubuntu 9.10, Titanium 1.5.X of 27th Nov, Google\n2.2.

\n

The following code demonstrates that addView() of\nscrollableView causes an exception. I have attached a clean project\nthat includes the following code and the assets required. This is the exception\noutput.

\n

app.js:

\n
\nvar window = Ti.UI.createWindow({});\n\nvar parentView = Ti.UI.createView({\n    backgroundColor:'blue'\n});\n\nwindow.add(parentView);\n\nvar cardSlider = Ti.UI.createScrollableView({\n    backgroundColor: '#aaa'\n});\n\nfor(var i=0, ilen=5; i<ilen; i++){\n    Ti.API.info('Adding: /card/'+i+'.png');\n    var screenView = Ti.UI.createView({});\n\n    var image = Ti.UI.createImageView({\n        // backgroudImage used to allow image to be scaled on android\n        backgroundImage: '/card/'+i+'.png',\n        width: 222,\n        height: 168\n    });\n    screenView.add(image);\n    cardSlider.addView(screenView);\n}\n\nparentView.add(cardSlider);\n\nwindow.open();\n
{html}", "attachment": [ { "id": "18149", "filename": "resources.zip", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:50.000+0000", "size": 116939, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: scrollableView addView() causes exception", "creator": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "128466", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

May be a regression from the removeView patch.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:50.000+0000", "updated": "2011-04-15T03:19:50.000+0000" }, { "id": "128467", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [0eed97c26b44ed50f0b3a9de6aff83bee1553abd])\n[#2436 state:fixed-in-qa] Verified unit test and\ntest in ticket didn't crash.

\n

Merge branch 'master' of https://github.com/dizzymonkey/titanium_mobile\ninto dizzymonkey-master
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/0eed97c26b44...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:50.000+0000", "updated": "2011-04-15T03:19:50.000+0000" }, { "id": "128468", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

sim 2.1, g2 2.2 Titanium SDK version: 1.5.0 (12/03/10 09:29\n33c2058) using attached files no crash

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:19:51.000+0000", "updated": "2011-04-15T03:19:51.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }