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/12/14 15:05:18 UTC

[GitHub] [cordova-plugin-splashscreen] sagarchikane commented on issue #305: unsafe areas behind notches in the screen.

sagarchikane commented on issue #305:
URL: https://github.com/apache/cordova-plugin-splashscreen/issues/305#issuecomment-744501018


   I had tried setting content inset safe values on the HTML body attribute too but that did not work out. So I did some changes within the native WKWebview implementation under `(void)updateSettings:(NSDictionary*)settings` method for the `CDVWebViewEngine.m` file under Cordova library. Following is the batch of code which was added 
   ```
   WKWebView* wkWebView = (WKWebView*)_engineWebView; // already present as part of library code
   wkWebView.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; // this was added
   ```
   
   This makes sure that the WKContentView takes up complete screen size


----------------------------------------------------------------
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