Fix split view issue

This commit is contained in:
Labhansh Agrawal 2020-02-11 21:11:07 +05:30 committed by Benjamin Staneck
parent f9ce44ba25
commit 734701c5e7

View file

@ -111,7 +111,7 @@ export default class Term extends React.PureComponent {
// The parent element for the terminal is attached and removed manually so
// that we can preserve it across mounts and unmounts of the component
this.termRef = props.term ? props.term._core._parent : document.createElement('div');
this.termRef = props.term ? props.term.element.parentElement : document.createElement('div');
this.termRef.className = 'term_fit term_term';
this.termWrapperRef.appendChild(this.termRef);