修改 闪动的bug review by hongmo
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -85,9 +85,9 @@ export default class Header extends React.Component { | @@ -85,9 +85,9 @@ export default class Header extends React.Component { | ||
85 | 85 | ||
86 | handleNavigationChange(navState) { | 86 | handleNavigationChange(navState) { |
87 | let heightT = parseInt(navState.title, 10) || 0; // turn NaN to 0 | 87 | let heightT = parseInt(navState.title, 10) || 0; // turn NaN to 0 |
88 | - this.setState({ | 88 | + heightT>0?this.setState({ |
89 | realContentHeight: heightT, | 89 | realContentHeight: heightT, |
90 | - }); | 90 | + }):null; |
91 | } | 91 | } |
92 | 92 | ||
93 | shouldStartLoadWithRequest(event) { | 93 | shouldStartLoadWithRequest(event) { |
-
Please register or login to post a comment