{ "id": "65439", "key": "TIMOB-4128", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-06-05T22:40:43.000+0000", "created": "2011-05-17T17:28:49.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-05T22:40:43.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": "See [this video|http://dl.dropbox.com/u/14392713/scrollableView-addView-issue.ogv] that shows the code below in action.\n\nThe issue is that the first view is not displayed until the user scrolls forward and back one view. This behavior is *not* exhibited if the views are assigned to an array and then to the scrollableView via the {{views}} property.\n\n{code}\nTitanium.UI.setBackgroundColor('#000');\n\nvar win1 = Titanium.UI.createWindow({\n title:'Win 1',\n backgroundColor:'white'\n});\n\nvar scrollView = Ti.UI.createScrollableView();\n\nfor (var i=0; i<4; i++){\n var thisView = Ti.UI.createView({\n backgroundColor:\"blue\"\n });\n var thisLabel = Ti.UI.createLabel({\n text: \"this is label \"+i,\n height:100,\n width:100\n });\n thisView.add(thisLabel);\n scrollView.addView(thisView);\n}\n\nwin1.add(scrollView);\n\nwin1.open();\n{code}", "attachment": [], "flagged": false, "summary": "scrollableView addView() first view does not to display until scrolled forward and back", "creator": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "environment": "Tested using 1.7.0 (05/16/11 20:22 d2783a5...) (note that this version is not currently available from the \"Affects versions\" jira menu)", "comment": { "comments": [ { "id": "274775", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "The issue cannot reproduce with the release master 3.2.0\nTested with: \nTitanium Studio, build: 2.1.2.201208301612\nTitanium SDK version: 3.2.0\nTested on\nDevice: Samsung galaxy s duos Android version: 4.0.4", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-10-11T10:45:01.000+0000", "updated": "2013-10-11T10:45:01.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }