bug: duplicate root container

This commit is contained in:
mathuo 2025-01-06 20:14:14 +00:00
parent 148a05a201
commit 2d8d38b466
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281

View File

@ -156,15 +156,13 @@ export abstract class BaseGrid<T extends IGridPanelView>
}
constructor(parentElement: HTMLElement, options: BaseGridOptions) {
super(document.createElement('div'), options.disableAutoResizing);
super(parentElement, options.disableAutoResizing);
this.element.style.height = '100%';
this.element.style.width = '100%';
this._classNames = new Classnames(this.element);
this._classNames.setClassNames(options.className ?? '');
parentElement.appendChild(this.element);
this.gridview = new Gridview(
!!options.proportionalLayout,
options.styles,