cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rafael Barriuso (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-11423) Web view shrinks after locking screen orientation
Date Fri, 05 Aug 2016 07:22:20 GMT

    [ https://issues.apache.org/jira/browse/CB-11423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15409049#comment-15409049
] 

Rafael Barriuso commented on CB-11423:
--------------------------------------

Here pretty much the same:
- OSX 10.11.6
- XCode 7.3 (7D175)
- Simulator 9.3 (SimulatorApp-645.9)
- Safari 9.1.2 (11601.7.7)

To reproduce the issue I just did the following:
1) Download the ZIP file and unzip it somewhere.
2) `cordova prepare ios`
3) `open platforms/ios/orientationTestApp.xcodeproj/`
4) Product -> Clean
5) Run on iPhone 6s Plus simulator.
6) On the simulator: wait until the app starts up (it takes a few seconds in my slow computer).
The simulator window is scaled to 25%.
7) Press the toggle button a couple of times and the issue is reproduced.
8) When the toggle button is hidden because of the issue I connect via Safari and run "app.toggleOrientation()".
Those are the console messages in the screenshot above.

Hope this helps to reproduce.

In any case the problem definitely seems to be related to the `cordova-plugin-statusbar`,
because I can't reproduce the issue if I remove it.


> Web view shrinks after locking screen orientation
> -------------------------------------------------
>
>                 Key: CB-11423
>                 URL: https://issues.apache.org/jira/browse/CB-11423
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Screen Orientation
>    Affects Versions: 1.4.2
>         Environment: Using:
> - Cordova CLI 6.2.0
> - cordova-ios 4.1.1
> - Xcode 7.3
> - OSX 10.11.5
> Best reproduced on an iOS simulator with iPhone 6s Plus and iOS 9.3.
>            Reporter: Rafael Barriuso
>            Assignee: Tony Homer
>         Attachments: cb-11423-joe1.png, cb-11423-joe2.png
>
>
> Since version 1.4.2 "screen.lockOrientation" works on iOS 9, but for some reason, in
some phones the dimensions of the web view are wrong after changing to the new orientation.
> Before locking:
> !https://www.dropbox.com/s/t2jcqqmg1hni22t/Sim-screenshot2.png?dl=1!
> After locking:
> !https://www.dropbox.com/s/p64324riwqzepzz/Sim-screenshot1.png?dl=1!
> Steps to reproduce:
> 1) Prepare a cordova app including cordova-plugin-screen-orientation.
> 2) Run the application on a Xcode simulator for iPhone 6s Plus and iOS 9.3.
> 3) Rotate the simulator to the left (menu -> Hardware -> Rotate left).
> 4) Open the Safari web inspector connected to the app running on the simulator.
> 5) In the console, run: window.screen.lockOrientation("portrait-primary")
> 6) The width of the resulting "<body>" is shrink, as reported by the Safari web
inspector (e.g. in my case to 92px whereas it should be 414px).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message