{ "id": "62002", "key": "TIMOB-1370", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-07T22:14:42.000+0000", "created": "2011-04-15T02:50:36.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [], "versions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "issuelinks": [ { "id": "19162", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "62001", "key": "TIMOB-1369", "fields": { "summary": "iOS: Images in scrollview gets jambled up in landscape", "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": "Trivial", "id": "5" }, "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-06-07T22:14:42.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}

Returning from landscape, scroll view inside scroller view loses\r\nits current images (goes blank)
\r\nHave to scroll to reset it back.

\r\n
\r\nvar scrollView = Titanium.UI.createScrollView({backgroundColor:'#ffffff', contentHeight:'auto', layout:'vertical', contentWidth:320,  top:0,  showVerticalScrollIndicator:true,   showHorizontalScrollIndicator:false});\r\n\r\n\r\nvar image_scrollView = Titanium.UI.createScrollableView({top:20,left:10,width:300,height:190,views:photo_array,showPagingControl:true,pagingControlColor:'#999',pagingControlHeight:5,maxZoomScale:2.0  });\r\nscrollView.add(image_scrollView);\r\n
{html}", "attachment": [ { "id": "17976", "filename": "img_02211.PNG", "author": { "name": "chrisg", "key": "chrisg", "displayName": "Chris G", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:37.000+0000", "size": 32538, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Returning from landscape, scroll view inside scroller view loses its current images (goes blank)", "creator": { "name": "chrisg", "key": "chrisg", "displayName": "Chris G", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "chrisg", "key": "chrisg", "displayName": "Chris G", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125479", "author": { "name": "chrisg", "key": "chrisg", "displayName": "Chris G", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Happens in iphone, using 1.3.2, 1.3.2 and latest git

{html}", "updateAuthor": { "name": "chrisg", "key": "chrisg", "displayName": "Chris G", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:37.000+0000", "updated": "2011-04-15T02:50:37.000+0000" }, { "id": "125480", "author": { "name": "chrisg", "key": "chrisg", "displayName": "Chris G", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

workaround

\n
\nimage_scrollView.currentPage = 0;\n
{html}", "updateAuthor": { "name": "chrisg", "key": "chrisg", "displayName": "Chris G", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:37.000+0000", "updated": "2011-04-15T02:50:37.000+0000" }, { "id": "125481", "author": { "name": "chrisg", "key": "chrisg", "displayName": "Chris G", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

this work around has stopped working in 1.5

{html}", "updateAuthor": { "name": "chrisg", "key": "chrisg", "displayName": "Chris G", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:37.000+0000", "updated": "2011-04-15T02:50:37.000+0000" }, { "id": "125482", "author": { "name": "chrisg", "key": "chrisg", "displayName": "Chris G", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

finally, just figured it out. This happens when you use the same\nimage objects for the second scrollview.
\nSince the array contains image objects, array.slice() isnt enough\nto clone the array. it needs to recreate every image object inside\nthe using the orginal file paths. Sooo guess this is a very minor\nbug with a relativly easy work around.

{html}", "updateAuthor": { "name": "chrisg", "key": "chrisg", "displayName": "Chris G", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:37.000+0000", "updated": "2011-04-15T02:50:37.000+0000" }, { "id": "125483", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Companion to #1369.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:38.000+0000", "updated": "2011-04-15T02:50:38.000+0000" }, { "id": "421273", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and lack of progress.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-07T22:14:42.000+0000", "updated": "2017-06-07T22:14:42.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }