apache / apache/cordova-ios

WKWebView displays content wrong after orientation change

Open
#951 3 comments 0 reactions 0 assignees View on GitHub
webkit bug
Dominant language
JavaScript
Stars
2.2k
Forks
1k
Avg merge
12h 11m
Merged PRs (30d)
18

Description

# Bug Report
WKWebView displays content html css wrong after orientation change
## Problem
I'm using cordova ios@6.1 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 ios@5.1.0 and in browser

### What does actually happen?

displays content wrong after orientation change

## Information
cordova-ios@6.1.0

### Environment, Platform, Device
IPAD
macbook pro
xcode

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the layout on an iPad with cordova-ios@6.1.0 and a WKWebView, rotating after launch. Compare the view before and after orientation changes; done means the HTML/CSS/JS content retains the correct size and position without zooming or extra whitespace.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.