From c817069cbfc3de352e7fa0d7b93dea45294a7c6e Mon Sep 17 00:00:00 2001 From: Michael Gangolf Date: Sat, 9 Nov 2024 20:18:14 +0100 Subject: [PATCH] feat(android): webview content will fill up the whole Ti.UI.WebView by default (#14099) * feat(android): webview fill property * make it the default --- .../java/ti/modules/titanium/ui/widget/webview/TiUIWebView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/modules/ui/src/java/ti/modules/titanium/ui/widget/webview/TiUIWebView.java b/android/modules/ui/src/java/ti/modules/titanium/ui/widget/webview/TiUIWebView.java index e7099c1dee4..ef191355591 100644 --- a/android/modules/ui/src/java/ti/modules/titanium/ui/widget/webview/TiUIWebView.java +++ b/android/modules/ui/src/java/ti/modules/titanium/ui/widget/webview/TiUIWebView.java @@ -375,6 +375,8 @@ public TiUIWebView(TiViewProxy proxy) TiCompositeLayout.LayoutParams params = getLayoutParams(); params.autoFillsHeight = true; params.autoFillsWidth = true; + params.height = TiCompositeLayout.LayoutParams.MATCH_PARENT; + params.width = TiCompositeLayout.LayoutParams.MATCH_PARENT; setNativeView(webView); }