You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/03/12 19:14:20 UTC

[GitHub] [cordova-plugin-screen-orientation] dpa99c commented on issue #43: Screen doesn't rotate many times on iOS from landscape to portrait

dpa99c commented on issue #43: Screen doesn't rotate many times on iOS from landscape to portrait
URL: https://github.com/apache/cordova-plugin-screen-orientation/issues/43#issuecomment-472142879
 
 
   This bug can be reproduced in a simple test case:
   
   - Create a test project that contains this plugin
       - Ensure all orientations are allowed in the plist configuration
   - Set `orientation.lock('portrait')` on `deviceready`
   - Build and run on a device/simulator that is already in landscape orientation (before the app launches)
   - Observe the webview (and splashscreen if present) are presented in landscape orientation initially
   - If an input exists in the upper half of the screen, observe that selecting it presents the keyboard in portrait
   - Rotate the device/simulator back to portrait
   - Observe the app interface rotates to portrait
   - Observe the low half of the webview does not respond to touch events
   
   I'm thinking this solution may require changes to both this plugin and `cordova-ios`:
   While a reference can be obtained to the CDVViewController via the global AppDelegate from CDVOrientation class, I'm not sure the public properties/functions exposed by the ViewController are currently sufficient to resolve this issue.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org