feat: correct contain size

This commit is contained in:
mathuo 2024-02-19 20:20:24 +00:00
parent 70014a8c10
commit 5c945e97d6
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281

View File

@ -141,6 +141,8 @@ export abstract class BaseGrid<T extends IGridPanelView>
constructor(options: BaseGridOptions) {
super(document.createElement('div'), options.disableAutoResizing);
this.element.style.height = '100%';
this.element.style.width = '100%';
options.parentElement.appendChild(this.element);