dockview-react 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-react
3
- * @version 3.0.0
3
+ * @version 3.0.1
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -2771,7 +2771,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
2771
2771
  }
2772
2772
  constructor(parentElement, options) {
2773
2773
  var _a;
2774
- super(document.createElement('div'), options.disableAutoResizing);
2774
+ super(parentElement, options.disableAutoResizing);
2775
2775
  this._id = nextLayoutId$1.next();
2776
2776
  this._groups = new Map();
2777
2777
  this._onDidRemove = new Emitter();
@@ -2790,7 +2790,6 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
2790
2790
  this.element.style.width = '100%';
2791
2791
  this._classNames = new Classnames(this.element);
2792
2792
  this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
2793
- parentElement.appendChild(this.element);
2794
2793
  this.gridview = new Gridview(!!options.proportionalLayout, options.styles, options.orientation, options.locked, options.margin);
2795
2794
  this.gridview.locked = !!options.locked;
2796
2795
  this.element.appendChild(this.gridview.element);