Browse Source

Update index.js

算错了。。。。。
pull/2338/head
卖代码的 8 years ago
committed by 偏右
parent
commit
87c142249c
  1. 4
      src/components/TopNavHeader/index.js

4
src/components/TopNavHeader/index.js

@ -9,13 +9,13 @@ export default class TopNavHeader extends PureComponent {
super(props);
this.state = {
maxWidth: (props.contentWidth === 'Fixed' ? 1200 : window.innerWidth) - 330 - 165 - 4 - 26,
maxWidth: (props.contentWidth === 'Fixed' ? 1200 : window.innerWidth) - 330 - 165 - 4 - 36,
};
}
static getDerivedStateFromProps(props) {
return {
maxWidth: (props.contentWidth === 'Fixed' ? 1200 : window.innerWidth) - 330 - 165 - 4,
maxWidth: (props.contentWidth === 'Fixed' ? 1200 : window.innerWidth) - 330 - 165 - 4 - 36,
};
}

Loading…
Cancel
Save