Just giving this a bump. Any PhoneGap experts out there that could lend a hand? Adobe staff perhaps?
1 person found this helpful
Sorry, I'm not sure how best to resize the webview when using wkwebview. What you might try instead is allow those controls to live above webview and provide appropriate margins in your web code to avoid them.
Thanks Kerri! I actually was thinking of doing just what you suggested as a last resort, but I managed to find discover the issue late last night...
There is a cordova plugin called "cordova-plugin-statusbar", that when initialized resizes the webview frame to take full screen. This only happens when you have <preference name="StatusBarOverlaysWebView" value="true" /> defined in the config.xml for the webview.
If you either remove the plugin (not really needed for native hybrid apps anyway) or you disable the "StatusBarOverlaysWebView" preference, then the status bar plugin will not resize your webview and the size you define in "viewWillAppear" will be respected and not overridden. This should be updated within the official phone gap documentation on embedding the web view.