Authored by 孙凯

修改 闪动的bug review by hongmo

@@ -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) {