{ "id": "109476", "key": "TIMOB-12656", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-02-09T01:01:40.000+0000", "created": "2013-02-09T00:55:03.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "25670", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "109475", "key": "TIMOB-12655", "fields": { "summary": "Android: ScrollView contents not visible when called inside open event listener", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-13T18:24:15.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": "Reproduction Steps:\r\n1. Run the code:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\n\r\nwin.open();\r\n\r\nfunction testscroll() {\r\n\tvar scrollView = Ti.UI.createScrollView({\r\n\t\tcontentHeight : 'auto'\r\n\t});\r\n\r\n\tvar view2 = Ti.UI.createView({\r\n\t\theight : Ti.UI.SIZE,\r\n\t\tlayout : 'vertical',\r\n\t\ttop : 0\r\n\t});\r\n\r\n\tfor (var i = 0; i < 20; i++) {\r\n\t\tvar label = Ti.UI.createLabel({\r\n\t\t\theight : 50,\r\n\t\t\ttext : 'Hello'\r\n\t\t});\r\n\t\tview2.add(label);\r\n\t}\r\n\r\n\tscrollView.add(view2);\r\n\twin.add(scrollView);\r\n}\r\n\r\nwin.addEventListener('open', function() {\r\n\ttestscroll();\r\n}); \r\n{code}\r\n\r\nExpected Result:\r\nThere should be a list of 'Hello' labels\r\n\r\nActual Result:\r\nThe screen is white without any labels.\r\n\r\nNOTE: If you call the testscroll() outside of the event listener, this code will work.", "attachment": [], "flagged": false, "summary": "Android: Scrollview content does not show when added in an 'open' event listener", "creator": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "237878", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-12656", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-09T01:01:40.000+0000", "updated": "2013-02-09T01:01:40.000+0000" }, { "id": "411456", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-13T18:24:15.000+0000", "updated": "2017-03-13T18:24:15.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }