mirror of
https://github.com/mathuo/dockview
synced 2025-01-22 09:25:57 +00:00
bug: duplicate root container
This commit is contained in:
parent
148a05a201
commit
2d8d38b466
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user