Don't show/hide the right panel depending on window size

Fixes https://github.com/vector-im/riot-web/issues/8772
This commit is contained in:
Travis Ralston 2019-12-05 23:30:13 -07:00
parent 8b492fdaa5
commit d8d8e59002

View file

@ -1699,12 +1699,6 @@ export default createReactClass({
if (this._windowWidth <= showLhsThreshold && window.innerWidth > showLhsThreshold) { if (this._windowWidth <= showLhsThreshold && window.innerWidth > showLhsThreshold) {
dis.dispatch({ action: 'show_left_panel' }); dis.dispatch({ action: 'show_left_panel' });
} }
if (this._windowWidth > hideRhsThreshold && window.innerWidth <= hideRhsThreshold) {
dis.dispatch({ action: 'hide_right_panel' });
}
if (this._windowWidth <= showRhsThreshold && window.innerWidth > showRhsThreshold) {
dis.dispatch({ action: 'show_right_panel' });
}
this.state.resizeNotifier.notifyWindowResized(); this.state.resizeNotifier.notifyWindowResized();
this._windowWidth = window.innerWidth; this._windowWidth = window.innerWidth;