浏览代码

Update index.ios.js

于广吉 6 年前
父节点
当前提交
d8fab04ad7
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      autoHeightWebView/index.ios.js

+ 2
- 2
autoHeightWebView/index.ios.js 查看文件

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