Telerik-Verified-Plugins / WKWebView

DEPRECATED - this plugin served a purpose in the past, but there are better implementation now

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WKWebView doesn't rotate contents correctly on iOS 10

TsvetinaIvanova opened this issue · comments

When the WKWebView is used on iOS 10, rotating the screen doesn't trigger a resize of the HTML contents: http://screencast.com/t/EJkj7CVn.

The same project works as expected using the default WebView. You can get project from here:
https://drive.google.com/file/d/0B38gHd-jMfVkUVVzQWF1SnlBUEE/view?usp=sharing

I don't think it's an iOS 10 issue as this has been reported before (for PhoneGap Build mostly)

I am not able to reproduce this with a Cordova CLI project, but I am able to reproduce it on TP. I've compared many differences between those two projects but I can't find the thing that's causing the difference..

I've stripped all the plugins from the app you linked to except this one, also built it for debugging and release, and copied the webfolder to my local project as well. I can't break my CLI project and I can't repair the TP project.

Perhaps it's an option for the customer to limit the rotation to portrait on iOS and use the screenorientation plugin to force orientation changes when/if they make sense.

Verified that the issue is resolved on iOS 10 with the latest update. I assume this will work for older versions (>8), too.