undo unneeded changes

This commit is contained in:
Bruno Windels 2019-01-08 12:05:06 +01:00
parent c6952ba5b6
commit c9272c48e0
3 changed files with 1 additions and 21 deletions

View file

@ -72,16 +72,12 @@ export default class MainSplit extends React.Component {
componentDidUpdate(prevProps) {
const shouldAllowResizing =
!this.props.disableSizing &&
!this.props.collapsedRhs &&
this.props.panel;
if (shouldAllowResizing && !this.resizer) {
this._createResizer();
} else if (!shouldAllowResizing && this.resizer) {
if (this.props.disableSizing) {
this.resizer.clearItemSizes();
}
this.resizer.detach();
this.resizer = null;
}