diff --git a/app/android/client/src/main/java/org/stendhalgame/client/ClientView.java b/app/android/client/src/main/java/org/stendhalgame/client/ClientView.java index 349baffa9d3..d7205ee53a7 100644 --- a/app/android/client/src/main/java/org/stendhalgame/client/ClientView.java +++ b/app/android/client/src/main/java/org/stendhalgame/client/ClientView.java @@ -24,6 +24,7 @@ import android.os.Build; import android.util.AttributeSet; import android.view.KeyEvent; +import android.view.ViewGroup; import android.view.inputmethod.InputMethodManager; import android.webkit.DownloadListener; import android.webkit.WebChromeClient; @@ -102,6 +103,10 @@ private void onInit() { setActive(false); // main activity manages initial visibility setBackgroundColor(Color.TRANSPARENT); + // expand to size of parent constraints + setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, + ViewGroup.LayoutParams.MATCH_PARENT)); + final WebSettings viewSettings = getSettings(); viewSettings.setJavaScriptEnabled(true); viewSettings.setDomStorageEnabled(true);