You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user