{ "id": "143464", "key": "TIMOB-18636", "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": "2016-11-17T23:40:16.000+0000", "created": "2015-01-23T21:46:09.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "TCSupportTriage", "documentViewer", "iOS", "rotation" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-23T21:09:46.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": "[Edited]\r\nSteps to reproduce:\r\n1.Create Window\r\n2.Create a TabGroup\r\n3.Create a TableView or ListView\r\n2.Add a click listener\r\n3.Call createDocumentViewer():\r\n4.Rotate the simulator/device to landscape\r\n5.Back to root Win\r\n6.Bug occurs", "attachment": [ { "id": "53849", "filename": "newtestDocumentViewer.zip", "author": { "name": "casevictor", "key": "casevictor", "displayName": "Victor Casé", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-28T05:34:28.000+0000", "size": 10243331, "mimeType": "application/zip" }, { "id": "53810", "filename": "testDocumentViewer.zip", "author": { "name": "casevictor", "key": "casevictor", "displayName": "Victor Casé", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-26T04:50:20.000+0000", "size": 10241608, "mimeType": "application/zip" }, { "id": "53791", "filename": "tibug1.png", "author": { "name": "casevictor", "key": "casevictor", "displayName": "Victor Casé", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-23T21:46:09.000+0000", "size": 23690, "mimeType": "image/png" }, { "id": "53792", "filename": "tibug2.png", "author": { "name": "casevictor", "key": "casevictor", "displayName": "Victor Casé", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-23T21:46:09.000+0000", "size": 22160, "mimeType": "image/png" }, { "id": "53793", "filename": "tibug3.png", "author": { "name": "casevictor", "key": "casevictor", "displayName": "Victor Casé", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-23T21:46:09.000+0000", "size": 29475, "mimeType": "image/png" }, { "id": "53850", "filename": "titanium_glitch.mov", "author": { "name": "casevictor", "key": "casevictor", "displayName": "Victor Casé", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-28T05:38:05.000+0000", "size": 2109643, "mimeType": "video/quicktime" }, { "id": "53811", "filename": "titanium_window.mov", "author": { "name": "casevictor", "key": "casevictor", "displayName": "Victor Casé", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-26T04:50:20.000+0000", "size": 2135504, "mimeType": "video/quicktime" } ], "flagged": false, "summary": "iOS: Rotate documentViewer and back to root Window occurs a glitch on screen", "creator": { "name": "casevictor", "key": "casevictor", "displayName": "Victor Casé", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "casevictor", "key": "casevictor", "displayName": "Victor Casé", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 8.1 simulator/device Ti 3.5.0.GA", "comment": { "comments": [ { "id": "340478", "author": { "name": "casevictor", "key": "casevictor", "displayName": "Victor Casé", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Titanium.UI.setBackgroundColor('#000');\r\n\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n color:'#999',\r\n text:'I am Window 2',\r\n font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n textAlign:'center',\r\n width:'auto'\r\n});\r\n\r\nlabel2.addEventListener('click',function(){\r\n Ti.UI.iOS.createDocumentViewer({url:'test.png'}).show();\r\n});\r\n\r\nwin1.add(label2);\r\n\r\nwin1.open();\r\n", "updateAuthor": { "name": "casevictor", "key": "casevictor", "displayName": "Victor Casé", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-23T21:47:44.000+0000", "updated": "2015-01-23T21:47:44.000+0000" }, { "id": "340534", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nI tried your code and steps mentioned in case on IOS 8.1 simulator, but can't reproduce your problem. \r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-01-26T03:45:23.000+0000", "updated": "2015-01-26T03:45:23.000+0000" }, { "id": "340538", "author": { "name": "casevictor", "key": "casevictor", "displayName": "Victor Casé", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello Shuo,\r\n\r\nSorry, I wrong the IOS version, my test case was on 8.1;\r\nI will attached my complete test code, plus a demo video. Hope that it helps you find the bug.\r\nKeep in touch.", "updateAuthor": { "name": "casevictor", "key": "casevictor", "displayName": "Victor Casé", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-26T04:51:25.000+0000", "updated": "2015-01-26T04:51:25.000+0000" }, { "id": "340907", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "HI\r\n\r\nThe problem is because the tiapp.xml file has a default setting for IOS orientation, Default iPhone setting is only \"UIInterfaceOrientationPortrait\",\r\n\r\nIf you want your iPhone app can rotate to other orientation, you have to change ios setting part like this:\r\n{code:title=tiapp.xml}\r\n\r\n \r\n \r\n UISupportedInterfaceOrientations~iphone\r\n \r\n UIInterfaceOrientationPortrait\r\n UIInterfaceOrientationPortraitUpsideDown\r\n UIInterfaceOrientationLandscapeLeft\r\n UIInterfaceOrientationLandscapeRight\r\n \r\n UISupportedInterfaceOrientations~ipad\r\n \r\n UIInterfaceOrientationPortrait\r\n UIInterfaceOrientationPortraitUpsideDown\r\n UIInterfaceOrientationLandscapeLeft\r\n UIInterfaceOrientationLandscapeRight\r\n \r\n{code}\r\n\r\nHere is the Ref to read about above change: [plist|http://docs.appcelerator.com/platform/latest/#!/guide/tiapp.xml_and_timodule.xml_Reference-section-29004921_tiapp.xmlandtimodule.xmlReference-plist]\r\n\r\nRemember to clean the app after change the tiapp.xml file, otherwise change will not apply to building process.\r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2015-01-28T02:29:21.000+0000", "updated": "2015-01-28T02:29:21.000+0000" }, { "id": "340921", "author": { "name": "casevictor", "key": "casevictor", "displayName": "Victor Casé", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Shuo, your answer solves the test case, however, when I tried in my \"real\" app the bug occured yet.\r\nThen, I tried to discover the bug creating a new test case, a little bit more complex, and the bug occurs again.\r\nIn fact, the new test case is a ( tabgroup -> tableview or listView -> documentViewer ). The rotation provokes the glitch again\r\nI will upload the new test code and a new test video.\r\nHope to keep in touch.", "updateAuthor": { "name": "casevictor", "key": "casevictor", "displayName": "Victor Casé", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-28T05:38:21.000+0000", "updated": "2015-01-28T05:38:21.000+0000" }, { "id": "344332", "author": { "name": "casevictor", "key": "casevictor", "displayName": "Victor Casé", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Any update about it?\r\n", "updateAuthor": { "name": "casevictor", "key": "casevictor", "displayName": "Victor Casé", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-02-25T18:21:40.000+0000", "updated": "2015-02-25T18:21:40.000+0000" }, { "id": "345056", "author": { "name": "onkelscatman", "key": "onkelscatman", "displayName": "Nils", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Same for me. Would be fantastic to be able to lock rotation on documentViewer.", "updateAuthor": { "name": "onkelscatman", "key": "onkelscatman", "displayName": "Nils", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-04T17:18:48.000+0000", "updated": "2015-03-04T17:18:48.000+0000" }, { "id": "346378", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Same here. My iPhone app is limited to portrait mode and the documentviewer can rotate. After closing the viewer, I'm getting the same glitch and only a forced restart of the app helps.", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-03-18T15:53:16.000+0000", "updated": "2015-03-18T15:53:16.000+0000" }, { "id": "356710", "author": { "name": "S.Kemper", "key": "s.kemper", "displayName": "Stefan Kemper", "active": true, "timeZone": "Europe/Berlin" }, "body": "Same problem for me. My App is limited to landscape as orientation mode. As a workaround, I do not restrict any orientation while displaying an alternative window with an accordingly message for portrait (=forbidden) mode. Not my preferred but for the moment the only solution I figured out for this bug.\r\n\r\n\"Ti.Gesture.addEventListener('orientationchange', function() { ... })\" is a global event that captures orientation changes.", "updateAuthor": { "name": "S.Kemper", "key": "s.kemper", "displayName": "Stefan Kemper", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-07-02T11:04:39.000+0000", "updated": "2015-07-02T11:04:39.000+0000" }, { "id": "358775", "author": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Same problem here. My app is limited to portrait mode only. Rotating other modal windows such as video player or a window (modal=true) doesn't have such issue. Only document viewer is problematic. Please fix.", "updateAuthor": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-31T22:28:20.000+0000", "updated": "2015-07-31T22:28:20.000+0000" }, { "id": "358792", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "The issue was reported January and nothing happened since now. Why are so serious problems ignored?", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-08-01T10:01:49.000+0000", "updated": "2015-08-01T10:01:49.000+0000" }, { "id": "359521", "author": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Looks like if you open document viewer on top of a modal window, the issue is not there.", "updateAuthor": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-11T00:39:20.000+0000", "updated": "2015-08-11T00:39:20.000+0000" }, { "id": "360468", "author": { "name": "magnatronus", "key": "magnatronus", "displayName": "Steve Rogers", "active": true, "timeZone": "Europe/London" }, "body": "SDK: 4.1.0.GA\r\nDevice iPhone (Portrait only)\r\nAlso an issue for me for an app being built for a client. Do we have any timeframe on a fix for this issue, or a temp workaround ? \r\n\r\nupdate: Have a workaround for now - as Shawn Lan suggested, I just open a blank Modal window full screen and use that to open the document viewer. When the document viewer unload event triggers I then close the modal window.", "updateAuthor": { "name": "magnatronus", "key": "magnatronus", "displayName": "Steve Rogers", "active": true, "timeZone": "Europe/London" }, "created": "2015-08-20T08:22:15.000+0000", "updated": "2015-08-20T09:02:19.000+0000" }, { "id": "361416", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Steve, that does the trick. Thanks for the hint. So I don't have to wait more time for the solution", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-08-27T11:27:46.000+0000", "updated": "2015-08-27T11:27:46.000+0000" }, { "id": "361489", "author": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Are you able to create a modal transparent window?", "updateAuthor": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-27T20:00:14.000+0000", "updated": "2015-08-27T20:00:14.000+0000" }, { "id": "397127", "author": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is this issue fixed? I tested it again and didn't see this issue anymore.", "updateAuthor": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-09-23T22:33:44.000+0000", "updated": "2016-09-23T22:33:44.000+0000" }, { "id": "397850", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Just saw this ticket. Is this still valid in newer SDK's? A simple app.js contanining the issue would be cool, thanks!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-10-02T16:28:17.000+0000", "updated": "2016-10-02T16:28:17.000+0000" }, { "id": "401477", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Cannot reproduce on recent versions of the SDK anymore. \r\n\r\nTest-case:\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"#fff\",\r\n title: \"My Window\"\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: \"Open Document Viewer\"\r\n});\r\n\r\nbtn.addEventListener(\"click\", function() {\r\n Ti.UI.iOS.createDocumentViewer({url:'default_app_logo.png'}).show();\r\n});\r\n\r\nwin.add(btn);\r\n\r\nvar nav = Ti.UI.iOS.createNavigationWindow({\r\n window:win\r\n});\r\n\r\nnav.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-17T23:40:16.000+0000", "updated": "2016-11-17T23:40:16.000+0000" }, { "id": "415373", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can verify this ticket as \"Cannot Reproduce\". Tested with the following environment;\r\niPhone 7 (10.2)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.0.3 GA\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nTi CLI 5.0.11\r\nAlloy 1.9.5\r\nArrow 1.10.1\r\nXcode 8.2 (8C38)\r\nNode v4.6.0\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T21:09:46.000+0000", "updated": "2017-03-23T21:09:46.000+0000" } ], "maxResults": 20, "total": 20, "startAt": 0 } } }