[TIMOB-18636] iOS: Rotate documentViewer and back to root Window occurs a glitch on screen
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2016-11-17T23:40:16.000+0000 |
Affected Version/s | Release 3.5.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | TCSupportTriage, documentViewer, iOS, rotation |
Reporter | Victor Casé |
Assignee | Eric Merriman |
Created | 2015-01-23T21:46:09.000+0000 |
Updated | 2017-03-23T21:09:46.000+0000 |
Description
[Edited]
Steps to reproduce:
1.Create Window
2.Create a TabGroup
3.Create a TableView or ListView
2.Add a click listener
3.Call createDocumentViewer():
4.Rotate the simulator/device to landscape
5.Back to root Win
6.Bug occurs
Attachments
File | Date | Size |
---|---|---|
newtestDocumentViewer.zip | 2015-01-28T05:34:28.000+0000 | 10243331 |
testDocumentViewer.zip | 2015-01-26T04:50:20.000+0000 | 10241608 |
tibug1.png | 2015-01-23T21:46:09.000+0000 | 23690 |
tibug2.png | 2015-01-23T21:46:09.000+0000 | 22160 |
tibug3.png | 2015-01-23T21:46:09.000+0000 | 29475 |
titanium_glitch.mov | 2015-01-28T05:38:05.000+0000 | 2109643 |
titanium_window.mov | 2015-01-26T04:50:20.000+0000 | 2135504 |
Titanium.UI.setBackgroundColor('#000'); var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); var label2 = Titanium.UI.createLabel({ color:'#999', text:'I am Window 2', font:{fontSize:20,fontFamily:'Helvetica Neue'}, textAlign:'center', width:'auto' }); label2.addEventListener('click',function(){ Ti.UI.iOS.createDocumentViewer({url:'test.png'}).show(); }); win1.add(label2); win1.open();
Hi, I tried your code and steps mentioned in case on IOS 8.1 simulator, but can't reproduce your problem. Regards, Shuo
Hello Shuo, Sorry, I wrong the IOS version, my test case was on 8.1; I will attached my complete test code, plus a demo video. Hope that it helps you find the bug. Keep in touch.
HI The problem is because the tiapp.xml file has a default setting for IOS orientation, Default iPhone setting is only "UIInterfaceOrientationPortrait", If you want your iPhone app can rotate to other orientation, you have to change ios setting part like this:
Here 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) Remember to clean the app after change the tiapp.xml file, otherwise change will not apply to building process. Regards, Shuo
Shuo, your answer solves the test case, however, when I tried in my "real" app the bug occured yet. Then, I tried to discover the bug creating a new test case, a little bit more complex, and the bug occurs again. In fact, the new test case is a ( tabgroup -> tableview or listView -> documentViewer ). The rotation provokes the glitch again I will upload the new test code and a new test video. Hope to keep in touch.
Any update about it?
Same for me. Would be fantastic to be able to lock rotation on documentViewer.
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.
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. "Ti.Gesture.addEventListener('orientationchange', function() { ... })" is a global event that captures orientation changes.
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.
The issue was reported January and nothing happened since now. Why are so serious problems ignored?
Looks like if you open document viewer on top of a modal window, the issue is not there.
SDK: 4.1.0.GA Device iPhone (Portrait only) Also 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 ? update: 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.
Steve, that does the trick. Thanks for the hint. So I don't have to wait more time for the solution
Are you able to create a modal transparent window?
Is this issue fixed? I tested it again and didn't see this issue anymore.
Just saw this ticket. Is this still valid in newer SDK's? A simple app.js contanining the issue would be cool, thanks!
Cannot reproduce on recent versions of the SDK anymore. Test-case:
Can verify this ticket as "Cannot Reproduce". Tested with the following environment; iPhone 7 (10.2) MacOS 10.11.6 (15G31) Studio 4.8.1.201612050850 Ti SDK 6.0.3 GA Appc NPM 4.2.8 Appc CLI 6.1.0 Ti CLI 5.0.11 Alloy 1.9.5 Arrow 1.10.1 Xcode 8.2 (8C38) Node v4.6.0 Java 1.7.0_80