From c8c344804ed035d5212d82a4236d87847717cc63 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 10 Dec 2019 10:01:45 -0700 Subject: [PATCH] Remove special case RHS resizer logic It doesn't seem to affect anything by being removed. --- src/components/structures/MainSplit.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/components/structures/MainSplit.js b/src/components/structures/MainSplit.js index 8cf6765de4..bd7bfd8780 100644 --- a/src/components/structures/MainSplit.js +++ b/src/components/structures/MainSplit.js @@ -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() { const bodyView = React.Children.only(this.props.children); const panelView = this.props.panel;