mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
Fix offscreen term size calculation (#2612)
* Fix offscreen term size calculation * Use positioning rather than opacity
This commit is contained in:
parent
5f64127f5b
commit
f56ea10fb0
1 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue