lorenzodallavecchia commented on PR #1817:
URL: https://github.com/apache/cordova-android/pull/1817#issuecomment-5449322174

   Is it expected that this change does not affect the 
`env(safe-area-inset-top)` CSS variable?
   
   This is an example scenario:
   - Phone with rounded corners and camera punch hole,
   - Android 13
   - Recent Android WebView (153)
   
   With `[email protected]`, the WebView is laid out with a top margin, 
avoiding the problematic top part of the screen.
   However, the CSS runner within the WebView still receives a non-zero 
`env(safe-area-inset-top)`, so it needlessly compensates for the supposed 
unsafe area by adding padding/margin. The end result is that the top bar of the 
application is too high, as both Cordova and the CSS style are compensating.
   
   Shouldn't `cordova-android` modify the insets seen by the HTML code (e.g. by 
setting them to 0) if it already avoided the unsafe part of the screen?


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to