{ "id": "62001", "key": "TIMOB-1369", "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-14T17:30:26.000+0000", "created": "2011-04-15T02:50:35.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" }, "inwardIssue": { "id": "62002", "key": "TIMOB-1370", "fields": { "summary": "iOS: Returning from landscape, scroll view inside scroller view loses its current images (goes blank)", "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-14T17:30:26.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}

I got a small scrollview in portrait inside a scollerview, which\r\nworks okay (stops accepting vertial scroll if only one image is\r\nthere). Then when u turn the phone sideways, a second window opens\r\nwith a landscape imageview, this worked in 1.3 but now it goes\r\ncrazy monkey and every thing is jumbled up

\r\n
\r\n\r\n    Ti.Gesture.addEventListener('orientationchange',function(e)\r\n    {   //Titanium.UI.orientation = e.orientation;\r\n        if(e.orientation == Titanium.UI.LANDSCAPE_LEFT || e.orientation == Titanium.UI.LANDSCAPE_RIGHT)\r\n        {   \r\n            (function(photo_array)\r\n            {   var gallery_win = Titanium.UI.createWindow({\r\n                    url:'gallery.js',\r\n                    backgroundColor:'#000000',\r\n                    fullscreen: true,\r\n                    orientationModes: [Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT]\r\n                });\r\n                gallery_win.photo_array = photo_array;  \r\n                gallery_win.open();\r\n                \r\n            })(photo_array);\r\n        }\r\n     \r\n    });\r\n\r\n//gallery.js\r\nvar win = Titanium.UI.currentWindow;\r\n\r\nvar image_scrollView = Titanium.UI.createScrollableView({views:win.photo_array, maxZoomScale:2.0, fullscreen:true, height: 'auto', width:  'auto' });\r\nwin.add(image_scrollView);\r\n\r\nTi.Gesture.addEventListener('orientationchange',function(e){\r\n    if(e.orientation == Titanium.UI.PORTRAIT)\r\n    {   win.close();\r\n    }\r\n});\r\n
{html}", "attachment": [ { "id": "17975", "filename": "img_02201.PNG", "author": { "name": "chrisg", "key": "chrisg", "displayName": "Chris G", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:35.000+0000", "size": 193662, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Images in scrollview gets jambled up in landscape", "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": "125476", "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:35.000+0000", "updated": "2011-04-15T02:50:35.000+0000" }, { "id": "125477", "author": { "name": "chrisg", "key": "chrisg", "displayName": "Chris G", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Well, this sort of fixed it, but still the touch event is a bit\nmessed up, have to touch in the middle to scroll.

\n
\n  Ti.Gesture.addEventListener('orientationchange',function(e)\n    {   //Titanium.UI.orientation = e.orientation;\n        if(e.orientation == Titanium.UI.LANDSCAPE_LEFT || e.orientation == Titanium.UI.LANDSCAPE_RIGHT)\n        {   \n            (function(photo_array)\n            {   \n                var gallery_win = Titanium.UI.createWindow({\n                    fullscreen: true,\n                    orientationModes: [e.orientation],\n                    backgroundColor: '#000000'\n                });\n\n                gallery_win.add(Titanium.UI.createScrollableView({fullscreen: true,top:0,left:0,width:480,height:320,views:photo_array,backgroundColor: '#000000'}));\n                \n                Ti.Gesture.addEventListener('orientationchange',function(e)\n                {   if(e.orientation == Titanium.UI.PORTRAIT)\n                    {   gallery_win.close();\n                        image_scrollView.currentPage = 0;\n                    }\n                });\n                gallery_win.open();\n                \n            })(photo_array);\n        }\n     \n    });\n
{html}", "updateAuthor": { "name": "chrisg", "key": "chrisg", "displayName": "Chris G", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:36.000+0000", "updated": "2011-04-15T02:50:36.000+0000" }, { "id": "125478", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Probably invalid, but the ticket is vague enough to be both\nplausible and require some R&D.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:36.000+0000", "updated": "2011-04-15T02:50:36.000+0000" }, { "id": "421967", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing due to time passed and lack of progress since the ticket was opened in April 2011.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-14T17:30:26.000+0000", "updated": "2017-06-14T17:30:26.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }