cordova-ios icon indicating copy to clipboard operation
cordova-ios copied to clipboard

WKWebView displays content wrong after orientation change

Open regv opened this issue 5 years ago • 3 comments
trafficstars

Bug Report

WKWebView displays content html css wrong after orientation change

Problem

I'm using cordova [email protected] for WKWebView to display a page css js. When the app starts up, it shows the view correctly, no matter what orientation it is currently in. However, once I change the orientation the view will either look zoomed in or has whitespace below the the page and position wrong and size. am using IPAD

What is expected to happen?

when oriantation change , i get the view correctly like i getted in [email protected] and in browser

What does actually happen?

displays content wrong after orientation change

Information

[email protected]

Environment, Platform, Device

IPAD macbook pro xcode

regv avatar Jul 21 '20 11:07 regv

i have the same issue with my app

ihebChaaraoui avatar Jul 21 '20 14:07 ihebChaaraoui

I have the exact opposite on the latest nightly build. On first run (left) and after rotating to landscape and then back to portrait (right):

afbeelding afbeelding

Could potentially be an Onsen UI problem too, but this only started happening when I upgraded from 5.1.1 to the latest nightly build.

Edit: This also happens on 6.1.0.

codecat avatar Aug 26 '20 13:08 codecat

I have the same issue. It works properly for the first time. Then it always return 'portrait'. Does anyone know how to fix?

hoangphat258 avatar Jan 20 '22 07:01 hoangphat258