提交 8915b731 编写于 作者: D Daniel Imms

Force terminal renderer to resume on layout

Fixes #42999
上级 5d653651
......@@ -1111,6 +1111,13 @@ export class TerminalInstance implements ITerminalInstance {
this._xterm.resize(this._cols, this._rows);
this._xterm.element.style.width = terminalWidth + 'px';
if (this._isVisible) {
// Force the renderer to unpause by simulating an IntersectionObserver event. This
// is to fix an issue where dragging the window to the top of the screen to maximize
// on Winodws/Linux would fire an event saying that the terminal was not visible.
// This should only force a refresh if one is needed.
(<any>this._xterm).renderer.onIntersectionChange({ intersectionRatio: 1 });
}
}
this._processReady.then(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册