parent
e717f7e51c
commit
052f74b6c6
1 changed files with 5 additions and 1 deletions
|
@ -1287,11 +1287,15 @@ export class TerminalInstance implements ITerminalInstance {
|
||||||
this._safeSetOption('drawBoldTextInBrightColors', config.drawBoldTextInBrightColors);
|
this._safeSetOption('drawBoldTextInBrightColors', config.drawBoldTextInBrightColors);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isNaN(cols) || isNaN(rows)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (cols !== this._xterm.cols || rows !== this._xterm.rows) {
|
if (cols !== this._xterm.cols || rows !== this._xterm.rows) {
|
||||||
this._onDimensionsChanged.fire();
|
this._onDimensionsChanged.fire();
|
||||||
}
|
}
|
||||||
|
|
||||||
this._xterm.resize(cols, rows);
|
this._xterm.resize(cols, rows);
|
||||||
|
|
||||||
if (this._isVisible) {
|
if (this._isVisible) {
|
||||||
// HACK: Force the renderer to unpause by simulating an IntersectionObserver event.
|
// HACK: 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
|
// This is to fix an issue where dragging the window to the top of the screen to
|
||||||
|
|
Loading…
Reference in a new issue