remove private binding of document in width cache ctor

This commit is contained in:
Jörg Breitbart
2023-08-01 18:30:06 +02:00
parent 40e622dfc8
commit 32a852c0bf
+1 -3
View File
@@ -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';