diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 78af5349..21356fa0 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -7,22 +7,8 @@ - - - - - - - - - - - - - - @@ -42,8 +28,8 @@ - - + + @@ -147,7 +133,7 @@ - + @@ -414,7 +400,7 @@ - + @@ -425,15 +411,15 @@ - + - + - + @@ -761,20 +747,8 @@ - - - - - - - - - - - - - - + + @@ -839,8 +813,8 @@ - - + + diff --git a/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/WebViewActivity.java b/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/WebViewActivity.java index ae724116..dc21fe05 100644 --- a/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/WebViewActivity.java +++ b/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/WebViewActivity.java @@ -102,6 +102,14 @@ public class WebViewActivity extends AppCompatActivity { settings.setUseWideViewPort(options.useWideViewPort); settings.setSupportZoom(options.supportZoom); + // fix webview scaling + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { + settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING); + } + else { + settings.setTextZoom(100); + } + } @Override