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.
@@ -55,7 +55,7 @@ var BaseGrid = /** @class */ (function (_super) {
55
55
  __extends(BaseGrid, _super);
56
56
  function BaseGrid(parentElement, options) {
57
57
  var _a;
58
- var _this = _super.call(this, document.createElement('div'), options.disableAutoResizing) || this;
58
+ var _this = _super.call(this, parentElement, options.disableAutoResizing) || this;
59
59
  _this._id = nextLayoutId.next();
60
60
  _this._groups = new Map();
61
61
  _this._onDidRemove = new events_1.Emitter();
@@ -74,7 +74,6 @@ var BaseGrid = /** @class */ (function (_super) {
74
74
  _this.element.style.width = '100%';
75
75
  _this._classNames = new dom_1.Classnames(_this.element);
76
76
  _this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
77
- parentElement.appendChild(_this.element);
78
77
  _this.gridview = new gridview_1.Gridview(!!options.proportionalLayout, options.styles, options.orientation, options.locked, options.margin);
79
78
  _this.gridview.locked = !!options.locked;
80
79
  _this.element.appendChild(_this.gridview.element);
@@ -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
  */
@@ -2801,7 +2801,7 @@ define(['exports'], (function (exports) { 'use strict';
2801
2801
  }
2802
2802
  constructor(parentElement, options) {
2803
2803
  var _a;
2804
- super(document.createElement('div'), options.disableAutoResizing);
2804
+ super(parentElement, options.disableAutoResizing);
2805
2805
  this._id = nextLayoutId$1.next();
2806
2806
  this._groups = new Map();
2807
2807
  this._onDidRemove = new Emitter();
@@ -2820,7 +2820,6 @@ define(['exports'], (function (exports) { 'use strict';
2820
2820
  this.element.style.width = '100%';
2821
2821
  this._classNames = new Classnames(this.element);
2822
2822
  this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
2823
- parentElement.appendChild(this.element);
2824
2823
  this.gridview = new Gridview(!!options.proportionalLayout, options.styles, options.orientation, options.locked, options.margin);
2825
2824
  this.gridview.locked = !!options.locked;
2826
2825
  this.element.appendChild(this.gridview.element);