소스 검색

Update index.ios.js

于广吉 6 년 전
부모
커밋
d8fab04ad7
No account linked to committer's email address
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
     }