提交 1cc8f3ce 编写于 作者: D Daniel Imms

Ensure pty gets resize event on layout

Fixes #28138
上级 ebecfa50
......@@ -761,13 +761,15 @@ export class TerminalInstance implements ITerminalInstance {
this._xterm.resize(this._cols, this._rows);
this._xterm.element.style.width = terminalWidth + 'px';
}
if (this._process.connected) {
this._processReady.then(() => {
if (this._process) {
this._process.send({
event: 'resize',
cols: this._cols,
rows: this._rows
});
}
});
}
public enableApiOnData(): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册