Procházet zdrojové kódy

Update index.ios.js

于广吉 před 6 roky
rodič
revize
d8fab04ad7
No account linked to committer's email address
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      autoHeightWebView/index.ios.js

+ 2
- 2
autoHeightWebView/index.ios.js Zobrazit soubor

83
     const width = props.style ? props.style.width : null;
83
     const width = props.style ? props.style.width : null;
84
     if (isSizeChanged(height, oldHeight, width, oldWidth)) {
84
     if (isSizeChanged(height, oldHeight, width, oldWidth)) {
85
       return {
85
       return {
86
-        height,
87
-        width,
86
+        height: height || oldHeight,
87
+        width: width || oldWidth,
88
         isSizeChanged: true
88
         isSizeChanged: true
89
       };
89
       };
90
     }
90
     }