Explorar el Código

Update index.ios.js

于广吉 hace 6 años
padre
commit
d8fab04ad7
No account linked to committer's email address
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      autoHeightWebView/index.ios.js

+ 2
- 2
autoHeightWebView/index.ios.js Ver fichero

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
     }