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
Revert "Merge pull request #2348 from matrix-org/bwindels/roomgridview-experimental"
This reverts commitece5cb1fcc, reversing changes made to64a3d2521c.
This commit is contained in:
@@ -71,13 +71,14 @@ export default class MainSplit extends React.Component {
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
const shouldAllowResizing =
|
||||
!this.props.collapsedRhs &&
|
||||
this.props.panel;
|
||||
const wasExpanded = !this.props.collapsedRhs && prevProps.collapsedRhs;
|
||||
const wasCollapsed = this.props.collapsedRhs && !prevProps.collapsedRhs;
|
||||
const wasPanelSet = this.props.panel && !prevProps.panel;
|
||||
const wasPanelCleared = !this.props.panel && prevProps.panel;
|
||||
|
||||
if (shouldAllowResizing && !this.resizer) {
|
||||
if (wasExpanded || wasPanelSet) {
|
||||
this._createResizer();
|
||||
} else if (!shouldAllowResizing && this.resizer) {
|
||||
} else if (wasCollapsed || wasPanelCleared) {
|
||||
this.resizer.detach();
|
||||
this.resizer = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user