[
https://issues.apache.org/jira/browse/CB-3065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13635379#comment-13635379
]
walid taraf commented on CB-3065:
---------------------------------
Not sure this is the same issue i am facing, so let me lay it out.
I am in Landscape mode in my app, then launch the inAppBrowser and my external
URL shows great, and nothing wrong there.
As i close the inAppBrowser thru the DONE button, my original landscape page in
my app has 1/3 of the right screen cutoff with a black screen. I am still in
landscape orientation, and i have checked window.orientation....i even forced a
refresh of the page. Still nothing..and if i navigate to other pages on my
app, same black screen 1/3 of right side.
I have to rotate the device to portrait and back to landscape to regain full
landscape.
My viewport is normal in my meta setup.
So is this the same bug guys? Anything we can hack now while waiting on a 2.3
Cordova fix?
thx a lot!
> Incorrect window.orientation value for portrait-only apps after returning
> from landscape mode (and vice versa) on iOS
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: CB-3065
> URL: https://issues.apache.org/jira/browse/CB-3065
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.6.0
> Environment: Mac OS X 10.7.5, Darwin Kernel Version 11.4.2;
> XCode 4.6.1
> iOS 5.1-6.1
> Reporter: Aleksey Yashchenko
> Assignee: Shazron Abdullah
> Priority: Minor
> Labels: orientation, orientationchange
>
> When changing orientation in portrait only app (e.g. by opening youtube video
> link in InAppBrowser and watching video in landscape mode) window.orientation
> have invalid value that affects many UI rendering code/styles.
> Steps to reproduce:
> - compose HTML with two buttons, 1: onClick='alert(window.orientation)',
> 2:onClick="window.open('....://www.youtube.com/watch?v=xxxxx', '_blank');
> - compile this resource to portrait only app (set
> UISupportedInterfaceOrientations to UIInterfaceOrientationPortrait in
> Info.plist)
> - run app
> - check orientation with first button, in portrait mode its 0
> - push the second button, start youtube video, rotate device to landscape mode
> - when in landscape mode press Done in YT video player and in InAppBrowser
> - with first button check orientation its value -90/90
> Described effect causes glitches and partial page rendering in several UI
> frameworks. Looks like web view gets incorrect orientation change even
> sequence why change itself is blocked by Info.plist setting.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira