undo unneeded changes
This commit is contained in:
parent
c6952ba5b6
commit
c9272c48e0
3 changed files with 1 additions and 21 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue