Merge pull request #819 from mathuo/818-container-with-theme-class-is-created-twice

bug: duplicate root container
This commit is contained in:
mathuo 2025-01-09 20:07:39 +00:00 committed by GitHub
commit 2f9af48146
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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,