mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Remove special case RHS resizer logic
It doesn't seem to affect anything by being removed.
This commit is contained in:
parent
b93cadf4d1
commit
c8c344804e
1 changed files with 0 additions and 19 deletions
|
@ -74,25 +74,6 @@ export default class MainSplit extends React.Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate(prevProps) {
|
|
||||||
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;
|
|
||||||
|
|
||||||
// TODO: TravisR - fix this logic
|
|
||||||
|
|
||||||
if (this.resizeContainer && (wasExpanded || wasPanelSet)) {
|
|
||||||
// The resizer can only be created when **both** expanded and the panel is
|
|
||||||
// set. Once both are true, the container ref will mount, which is required
|
|
||||||
// for the resizer to work.
|
|
||||||
this._createResizer();
|
|
||||||
} else if (this.resizer && (wasCollapsed || wasPanelCleared)) {
|
|
||||||
this.resizer.detach();
|
|
||||||
this.resizer = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const bodyView = React.Children.only(this.props.children);
|
const bodyView = React.Children.only(this.props.children);
|
||||||
const panelView = this.props.panel;
|
const panelView = this.props.panel;
|
||||||
|
|
Loading…
Reference in a new issue