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:
parent
8b492fdaa5
commit
d8d8e59002
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue