Browse Source

Stop height changing when fullscreenElement exists on Android, to fix: https://github.com/iou90/react-native-autoheight-webview/issues/178

iou90 3 years ago
parent
commit
faf67a9e92
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      autoHeightWebView/utils.js

+ 1
- 1
autoHeightWebView/utils.js View File

@@ -25,7 +25,7 @@ const updateSizeWithMessage = (element, scalesPageToFit) =>
25 25
   var checkPostMessageTimeout;
26 26
 
27 27
   function updateSize() {
28
-    if (zoomedin || scaling) {
28
+    if (zoomedin || scaling || document.fullscreenElement) {
29 29
       return;
30 30
     }
31 31
     if (