{ "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\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
Happens in iphone, using 1.3.2, 1.3.2 and latest git
workaround
\n\nimage_scrollView.currentPage = 0;
\n
this work around has stopped working in 1.5
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.
Companion to #1369.