mirror of https://github.com/vector-im/riot-web
Don't show/hide the right panel depending on window size
Fixes https://github.com/vector-im/riot-web/issues/8772pull/21833/head
parent
8b492fdaa5
commit
d8d8e59002
|
@ -1699,12 +1699,6 @@ export default createReactClass({
|
|||
if (this._windowWidth <= showLhsThreshold && window.innerWidth > showLhsThreshold) {
|
||||
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._windowWidth = window.innerWidth;
|
||||
|
|
Loading…
Reference in New Issue