You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like there is an issue with the way this plugin moves and resizes webView. In iOS 7 status bar covers the top of main view. You can change this behaviour using this plugin 'com.phonegap.plugin.statusbar' (move webView down 20px), but this plugin after initialization moves webView back to top.
Looks like by changing the following code:
// Move the webview to the top of the screen.
webViewFrame.origin.y = 0;
...
webViewFrame.size.height = superViewFrame.size.height - bannerViewFrame.size.height;
To:
// Move the webview to the top of the screen.
if ([[UIDevice currentDevice].systemVersion floatValue] >= 7)
webViewFrame.origin.y = 20;
else
webViewFrame.origin.y = 0;
...
webViewFrame.size.height = superViewFrame.size.height - webViewFrame.origin.y - bannerViewFrame.size.height;
Resolves the issue, but I'm not sure what else it can break.
The text was updated successfully, but these errors were encountered:
HI tried the above patch in 2 separate plugins : org.apache.cordova.statusbar and com.phonegap.plugin.statusbar. Both times that I implemented that the behavior of the webview is not changing. When the Ad is shown the webview get and incorrect margin [like the toolbar would be ignored].
I am using in the js cordova code : StatusBar.overlaysWebView(false); to prevent a bug appearing in IOS7.
Looks like there is an issue with the way this plugin moves and resizes webView. In iOS 7 status bar covers the top of main view. You can change this behaviour using this plugin 'com.phonegap.plugin.statusbar' (move webView down 20px), but this plugin after initialization moves webView back to top.
Looks like by changing the following code:
To:
Resolves the issue, but I'm not sure what else it can break.
The text was updated successfully, but these errors were encountered: