Fix inconsistency with lineHeight
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user