{ "id": "63086", "key": "TIMOB-2454", "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": "2012-07-20T14:54:38.000+0000", "created": "2011-04-15T03:20:15.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "19061", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T22:44:07.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Opening a ticket and uploading a test case following this\nQ&A:
\n\nhttp://developer.appcelerator.com/question/83731/scrollableview-pus...

\n
\n

Hi,
\n1.5 seems to have a bug when pushing a new array of Views to an\nexisting scrollableView.
\nThe previous views are still visible in the background and the app\nstarts to lag a lot...
\nAnyone experiencing this? The workaround is to loop through all the\nviews and removing them one by one using removeView, but if you\npass an empty array, the old views are still present in the\nbackground.
\nThanks, Brice

\n
\n
\nvar w = Ti.UI.createWindow();\nw.open();\n\nvar sv = Ti.UI.createScrollableView({height:200, showPagingControl:true});\nw.add(sv);\n\nvar v = [];\n\nTi.Gesture.addEventListener('orientationchange',function(e){\n  v = [];\n  \n  var color;\n  if(e.orientation == 1 || e.orientation == 2){\n    color = \"#00ff00\";\n  }else{\n    color = \"#ff0000\";\n  }\n  for (var j = 0;j < 5;j++){\n    v.push(Ti.UI.createView({backgroundColor:color}));\n  }\n  \n  sv.views = v;\n});\n
{html}", "attachment": [], "flagged": false, "summary": "ScrollableView Push Views bug on 1.5 ", "creator": { "name": "bricelechatellier", "key": "bricelechatellier", "displayName": "Brice Lechatellier", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bricelechatellier", "key": "bricelechatellier", "displayName": "Brice Lechatellier", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128515", "author": { "name": "renatoformato", "key": "renatoformato", "displayName": "Renato Formato", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I have the same on ScrollableView.

\n

On orientation change I recreate the ImageView inside my\nScrollableView and i reassing to it with the property views.
\nThe bug is visible only when I have just one ImageView to show, not\nwith two or more images.
\nIt appears after rotating twice the iPhone, when I start to see\nboth the images, one over the other.

\n

I've found no way to workaround it.

{html}", "updateAuthor": { "name": "renatoformato", "key": "renatoformato", "displayName": "Renato Formato", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:20:15.000+0000", "updated": "2011-04-15T03:20:15.000+0000" }, { "id": "208801", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Does not reproduce with release 2.1.0.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-21T00:03:16.000+0000", "updated": "2012-07-21T00:03:16.000+0000" }, { "id": "410824", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T22:44:07.000+0000", "updated": "2017-03-09T22:44:07.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }