You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/12/17 17:07:01 UTC

[GitHub] mhartington commented on issue #112: how to get statusbar height

mhartington commented on issue #112: how to get statusbar height
URL: https://github.com/apache/cordova-plugin-statusbar/issues/112#issuecomment-447921316
 
 
   Newer versions of iOS and Android provide env-variables in css for this
   
   ```
   env(safe-area-inset-top)
   ```
   
   Which would return the space reserved for the status bar. But that's only for newer version of the OS. Older versions would not have this. Thankfully, iOS would have ~20px as the height for the status bar, but android could have many different status bar sizes, so there's not way to know for sure.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org