Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
fix initial zoom on android status-im/status-mobile#898
Browse files Browse the repository at this point in the history
  • Loading branch information
rasom committed Mar 14, 2017
1 parent 66adcad commit 304672b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ public void onGeolocationPermissionsShowPrompt(String origin, GeolocationPermiss
mWebViewConfig.configWebView(webView);
webView.getSettings().setBuiltInZoomControls(true);
webView.getSettings().setDisplayZoomControls(false);
webView.getSettings().setUseWideViewPort(true);
webView.setInitialScale(1);

// Fixes broken full-screen modals/galleries due to body height being 0.
webView.setLayoutParams(
Expand Down

0 comments on commit 304672b

Please sign in to comment.