lovelyelfpop commented on issue #933:
URL: https://github.com/apache/cordova-ios/issues/933#issuecomment-660484354
Add some code in
`CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m`
```
// re-create WKWebView, since we need to update configuration
WKWebView* wkWebView = [[WKWebView alloc]
initWithFrame:self.engineWebView.frame configuration:configuration];
// add begin
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000
if (@available(iOS 11.0, *)) {
[wkWebView.scrollView
setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever];
}
#endif
// add end
wkWebView.UIDelegate = self.uiDelegate;
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]