Skip to content

Commit

Permalink
Force terminal renderer to resume on layout
Browse files Browse the repository at this point in the history
Fixes #42999
  • Loading branch information
Tyriar committed Feb 20, 2018
1 parent 5d65365 commit 8915b73
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 8915b73

Please sign in to comment.