Fix inconsistency with lineHeight

This commit is contained in:
Daniel Imms
2017-09-03 09:05:26 -07:00
parent 48b37453ea
commit 2d1a1bfb76
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -47,6 +47,9 @@ export class Renderer {
}
public onResize(cols: number, rows: number): void {
if (!this._terminal.charMeasure.width || !this._terminal.charMeasure.height) {
return;
}
const width = this._terminal.charMeasure.width * this._terminal.cols;
const height = Math.floor(this._terminal.charMeasure.height * this._terminal.options.lineHeight) * this._terminal.rows;
this._renderLayers.forEach(l => l.resize(this._terminal, width, height, false));