On Android, when setting `footer` to `yes`, the footer bar overlaps the WebView
content, causing it to cover up the bottom slice of the WebView.
I was able to fix the issue by forking the library and using `setMargins` on
the WebView's `LinearLayout.LayoutParams` equal to the height of the footer,
but I only did that because I could not get any other way to work so I am not
sure if this is the best way to fix the problem.
My fix is below.
FROM:
inAppWebView = new WebView(cordova.getActivity());
inAppWebView.setLayoutParams(new
LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,
LayoutParams.MATCH_PARENT));
TO:
int footerSize = this.dpToPixels(44);
inAppWebView = new WebView(cordova.getActivity());
LinearLayout.LayoutParams webViewLayoutParams = new
LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
if (showFooter) {
webViewLayoutParams.setMargins(0, 0, 0, footerSize); // Adding margin
the same size as the footer
}
inAppWebView.setLayoutParams(webViewLayoutParams);
[ Full content available at:
https://github.com/apache/cordova-plugin-inappbrowser/issues/294 ]
This message was relayed via gitbox.apache.org for [email protected]