lorenzodallavecchia commented on PR #1817: URL: https://github.com/apache/cordova-android/pull/1817#issuecomment-5475194006
I tried with `[email protected]` but the problem persisted. I did some investigation, and apparently the problem is that we are returning the same indents even after compensating for them by adding margins. https://github.com/apache/cordova-android/blob/a637442f84a566d0a9f7d9e2890a3b303ad1c49b/framework/src/org/apache/cordova/CordovaActivity.java#L253 [This page on the Android website](https://developer.android.com/develop/ui/views/layout/webapps/understand-window-insets#inset-handling) documents the problem, calling it "double padding". The example there shows the "zeroing" of the passed insets. I'm currently testing a slightly different fix: returning the original insets minus the four values (top, left, bottom, right). Basically, my idea is to provide the WebView with the remaining insets after compensation. -- 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]
