You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/11/05 09:01:28 UTC
[GitHub] [cordova-ios] Masterxiechengxun edited a comment on issue #933: WKWebView reports wrong size in Cordova iOS 6.1.0
Masterxiechengxun edited a comment on issue #933:
URL: https://github.com/apache/cordova-ios/issues/933#issuecomment-722241225
> 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;
> ```
Thank you! Solved my problems perfectly.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org