Merge pull request #2140 from Tyriar/2136_fix_dom_renderer
Fix DOM renderer
This commit is contained in:
@@ -69,6 +69,7 @@ export class DomRenderer extends Disposable implements IRenderer {
|
|||||||
actualCellHeight: null
|
actualCellHeight: null
|
||||||
};
|
};
|
||||||
this._updateDimensions();
|
this._updateDimensions();
|
||||||
|
this._injectCss();
|
||||||
|
|
||||||
this._rowFactory = new DomRendererRowFactory(_terminal.options, document);
|
this._rowFactory = new DomRendererRowFactory(_terminal.options, document);
|
||||||
|
|
||||||
@@ -90,7 +91,7 @@ export class DomRenderer extends Disposable implements IRenderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _updateDimensions(): void {
|
private _updateDimensions(): void {
|
||||||
this.dimensions.scaledCharWidth = Math.floor(this._terminal.charMeasure.width * window.devicePixelRatio);
|
this.dimensions.scaledCharWidth = this._terminal.charMeasure.width * window.devicePixelRatio;
|
||||||
this.dimensions.scaledCharHeight = Math.ceil(this._terminal.charMeasure.height * window.devicePixelRatio);
|
this.dimensions.scaledCharHeight = Math.ceil(this._terminal.charMeasure.height * window.devicePixelRatio);
|
||||||
this.dimensions.scaledCellWidth = this.dimensions.scaledCharWidth + Math.round(this._terminal.options.letterSpacing);
|
this.dimensions.scaledCellWidth = this.dimensions.scaledCharWidth + Math.round(this._terminal.options.letterSpacing);
|
||||||
this.dimensions.scaledCellHeight = Math.floor(this.dimensions.scaledCharHeight * this._terminal.options.lineHeight);
|
this.dimensions.scaledCellHeight = Math.floor(this.dimensions.scaledCharHeight * this._terminal.options.lineHeight);
|
||||||
|
|||||||
Reference in New Issue
Block a user