mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
remove private binding of document in width cache ctor
This commit is contained in:
@@ -37,9 +37,7 @@ export class WidthCache implements IDisposable {
|
||||
private _container: HTMLDivElement;
|
||||
private _measureElements: HTMLSpanElement[] = [];
|
||||
|
||||
constructor(
|
||||
private readonly _document: Document
|
||||
) {
|
||||
constructor(_document: Document) {
|
||||
this._container = _document.createElement('div');
|
||||
this._container.style.position = 'absolute';
|
||||
this._container.style.top = '-50000px';
|
||||
|
||||
Reference in New Issue
Block a user