Merge pull request #516 from mathuo/447-feature-request-adding-a-gap-around-panels

feat: correct contain size
This commit is contained in:
mathuo 2024-02-19 20:45:58 +00:00 committed by GitHub
commit 05ff795188
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);