Fixed web view scaling

This commit is contained in:
M66B
2020-08-11 15:04:31 +02:00
parent 944cd535e3
commit c879684e78
2 changed files with 11 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
WebSettings settings = getSettings();
settings.setUseWideViewPort(true);
settings.setLoadWithOverviewMode(true);
settings.setLoadWithOverviewMode(false);
settings.setBuiltInZoomControls(true);
settings.setDisplayZoomControls(false);
@@ -75,7 +75,7 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
this.height = (height == 0 ? getMinimumHeight() : height);
setInitialScale(size == 0 ? 1 : Math.round(size * 100));
setInitialScale(size == 0 ? 0 : Math.round(size * 100));
if (position != null) {
setScrollX(position.first);