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 2021/01/17 20:59:01 UTC

[GitHub] [cordova-plugin-wkwebview-engine] Pietfro commented on issue #108: Content dimensions incorrect at startup on iPhone X

Pietfro commented on issue #108:
URL: https://github.com/apache/cordova-plugin-wkwebview-engine/issues/108#issuecomment-761879028


   For anyone that is still struggling with the viewport sizing on iOS, here is the most bulletproof solution I came up with:
   ```
   html,
   body {
       height: calc(100vh - env(safe-area-inset-bottom, 0px)) - env(safe-area-inset-top, 0px);
       min-height: calc(100vh - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px));
       width: 100%;
       margin: 0;
       padding: 0;
       position: relative;
       overflow: hidden;
   }
   ```


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