Преглед изворни кода

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

iou90 пре 4 година
родитељ
комит
faf67a9e92
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      autoHeightWebView/utils.js

+ 1
- 1
autoHeightWebView/utils.js Прегледај датотеку

25
   var checkPostMessageTimeout;
25
   var checkPostMessageTimeout;
26
 
26
 
27
   function updateSize() {
27
   function updateSize() {
28
-    if (zoomedin || scaling) {
28
+    if (zoomedin || scaling || document.fullscreenElement) {
29
       return;
29
       return;
30
     }
30
     }
31
     if (
31
     if (