{ "id": "93907", "key": "TIMOB-9804", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13419", "description": "Sprint 2012-13 Mobile Web", "name": "Sprint 2012-13 MW", "archived": true, "released": true, "releaseDate": "2012-07-01" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-27T10:25:31.000+0000", "created": "2012-06-26T09:56:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-06-27T11:36:23.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "Setting the views on a scrollable view using the views property causes a crash.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white',\r\n\ttitle: \"yo\"\r\n});\r\n\r\n\r\nvar makePage = function(n) {\r\n\tvar v = Ti.UI.createView({backgroundColor: n});\r\n\tv.add(Ti.UI.createLabel({text: n, color: 'white'}));\r\n\treturn v;\r\n}\r\n\r\nvar views = [\"blue\", \"green\", \"red\"].map(makePage);\r\nvar scrollable_view = Ti.UI.createScrollableView({views:views, showPagingControl:true });\r\nwin.add(scrollable_view);\r\nwin.open();\r\ndebugger;\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: Setting the views property on ScrollableView causes a crash", "creator": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "200299", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2470", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-26T09:59:07.000+0000", "updated": "2012-06-26T09:59:07.000+0000" }, { "id": "200329", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "2_1_X Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2471", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-26T10:54:35.000+0000", "updated": "2012-06-26T10:54:47.000+0000" }, { "id": "200619", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue in the environment below & found that it does not crash by setting views property on scrollableview.\r\n\r\nTitanium Studio : 2.1.0.201206251749\r\nSDK version : 2.1.0.v20120626204252\r\nChrome : 19.0.1084.56\r\nIphone safari\r\nandroid 2.3.6", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-27T11:36:23.000+0000", "updated": "2012-06-27T11:36:23.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }