Fix viewport/background size after char size changed

This commit is contained in:
Daniel Imms
2017-09-03 07:57:16 -07:00
parent deb47e29bf
commit a3297b0017
+1
View File
@@ -608,6 +608,7 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
this.charMeasure = new CharMeasure(document, this.helperContainer);
this.viewport = new Viewport(this, this.viewportElement, this.viewportScrollArea, this.charMeasure);
this.charMeasure.on('charsizechanged', () => this.viewport.syncScrollArea());
this.renderer = new Renderer(this);
this.on('cursormove', () => this.renderer.onCursorMove());
this.on('resize', () => this.renderer.onResize(this.cols, this.rows));