dockview-core 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * dockview-core
3
- * @version 3.0.0
3
+ * @version 3.0.1
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -2799,7 +2799,7 @@ class BaseGrid extends Resizable {
2799
2799
  }
2800
2800
  constructor(parentElement, options) {
2801
2801
  var _a;
2802
- super(document.createElement('div'), options.disableAutoResizing);
2802
+ super(parentElement, options.disableAutoResizing);
2803
2803
  this._id = nextLayoutId$1.next();
2804
2804
  this._groups = new Map();
2805
2805
  this._onDidRemove = new Emitter();
@@ -2818,7 +2818,6 @@ class BaseGrid extends Resizable {
2818
2818
  this.element.style.width = '100%';
2819
2819
  this._classNames = new Classnames(this.element);
2820
2820
  this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
2821
- parentElement.appendChild(this.element);
2822
2821
  this.gridview = new Gridview(!!options.proportionalLayout, options.styles, options.orientation, options.locked, options.margin);
2823
2822
  this.gridview.locked = !!options.locked;
2824
2823
  this.element.appendChild(this.gridview.element);