Fix CharMeasure getting taller on successive calls

This commit is contained in:
Daniel Imms
2017-09-02 19:04:07 -07:00
parent 7ccac09b6b
commit c94e87428d
2 changed files with 6 additions and 5 deletions
-1
View File
@@ -56,7 +56,6 @@ export class Viewport implements IViewport {
if (rowHeightChanged) {
this.currentRowHeight = lineHeight;
this.viewportElement.style.lineHeight = lineHeight + 'px';
this.terminal.element.style.lineHeight = lineHeight + 'px';
}
const viewportHeightChanged = this.lastRecordedViewportHeight !== this.terminal.rows;
if (rowHeightChanged || viewportHeightChanged) {