mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Remove scroll refresh on _getDimension
This was causing layouts to happen on resize an it's unnecessary as it's being run on setVisible too.
This commit is contained in:
parent
744376e0cf
commit
5b56c6cda7
|
@ -243,15 +243,6 @@ export class TerminalInstance implements ITerminalInstance {
|
|||
// The panel is minimized
|
||||
if (!height) {
|
||||
return TerminalInstance._lastKnownDimensions;
|
||||
} else {
|
||||
// Trigger scroll event manually so that the viewport's scroll area is synced. This
|
||||
// needs to happen otherwise its scrollTop value is invalid when the panel is toggled as
|
||||
// it gets removed and then added back to the DOM (resetting scrollTop to 0).
|
||||
// Upstream issue: https://github.com/sourcelair/xterm.js/issues/291
|
||||
if (this._xterm) {
|
||||
// TODO: See if we can live without this now
|
||||
this._xterm.emit('scroll', this._xterm.buffer.ydisp);
|
||||
}
|
||||
}
|
||||
|
||||
if (!this._wrapperElement) {
|
||||
|
|
Loading…
Reference in a new issue