This is an automated email from the ASF dual-hosted git repository.

GitToTheHub pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/cordova-plugin-inappbrowser.git


The following commit(s) were added to refs/heads/master by this push:
     new 56fb083  fix(android): place footer below WebView instead of 
overlaying content (#1148)
56fb083 is described below

commit 56fb0835751ca18e639220a67695b4e5882f7a17
Author: Manuel Beck <[email protected]>
AuthorDate: Sun May 10 12:56:08 2026 +0200

    fix(android): place footer below WebView instead of overlaying content 
(#1148)
    
    - Set the WebView container to LinearLayout.LayoutParams(MATCH_PARENT, 0, 
1.0f).
    - Stop adding the footer as an overlay inside webViewLayout.
    - Add the footer directly to the main vertical layout with its own fixed 
toolbar-height layout params.
    - Generated-By: GPT-5.4
---
 src/android/InAppBrowser.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/android/InAppBrowser.java b/src/android/InAppBrowser.java
index f220b9f..6a039c6 100644
--- a/src/android/InAppBrowser.java
+++ b/src/android/InAppBrowser.java
@@ -1061,12 +1061,14 @@ public class InAppBrowser extends CordovaPlugin {
 
                 // Add our webview to our main view/layout
                 RelativeLayout webViewLayout = new 
RelativeLayout(cordova.getActivity());
+                webViewLayout.setLayoutParams(new 
LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, 0, 1.0f));
                 webViewLayout.addView(inAppWebView);
                 main.addView(webViewLayout);
 
                 // Don't add the footer unless it's been enabled
                 if (showFooter) {
-                    webViewLayout.addView(footer);
+                    footer.setLayoutParams(new 
LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, 
this.dpToPixels(TOOLBAR_HEIGHT)));
+                    main.addView(footer);
                 }
 
                 WindowManager.LayoutParams lp = new 
WindowManager.LayoutParams();


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

Reply via email to