Set the proper size to the drawer when device rotates (#1899)
This commit is contained in:
parent
3bc93c8f38
commit
3a2e8e256a
1 changed files with 2 additions and 2 deletions
|
|
@ -93,7 +93,7 @@ export default class ChannelSidebar extends Component {
|
|||
}
|
||||
|
||||
shouldComponentUpdate(nextProps, nextState) {
|
||||
const {currentTeamId, isLandscape, teamsCount} = this.props;
|
||||
const {currentTeamId, deviceWidth, isLandscape, teamsCount} = this.props;
|
||||
const {openDrawerOffset} = this.state;
|
||||
|
||||
if (nextState.openDrawerOffset !== openDrawerOffset || nextState.show !== this.state.show) {
|
||||
|
|
@ -101,7 +101,7 @@ export default class ChannelSidebar extends Component {
|
|||
}
|
||||
|
||||
return nextProps.currentTeamId !== currentTeamId ||
|
||||
nextProps.isLandscape !== isLandscape ||
|
||||
nextProps.isLandscape !== isLandscape || nextProps.deviceWidth !== deviceWidth ||
|
||||
nextProps.teamsCount !== teamsCount || this.state.lockMode !== nextState.lockMode;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue