Fix offscreen term size calculation (#2612)

* Fix offscreen term size calculation

* Use positioning rather than opacity
This commit is contained in:
CHaBou 2018-01-15 23:22:54 +01:00 committed by Guillermo Rauch
parent 5f64127f5b
commit f56ea10fb0

View file

@ -151,13 +151,16 @@ export default class Terms extends Component {
},
termGroup: {
display: 'none',
display: 'block',
width: '100%',
height: '100%'
height: '100%',
position: 'absolute',
top: '100%', // Offscreen to pause xterm rendering, thanks to IntersectionObserver
left: 0
},
termGroupActive: {
display: 'block'
top: 0
}
};
}