dockview 2.1.3 → 2.1.4

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
3
- * @version 2.1.3
3
+ * @version 2.1.4
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -7640,10 +7640,6 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
7640
7640
  this._api = new DockviewApi(this);
7641
7641
  this.updateWatermark();
7642
7642
  }
7643
- dispose() {
7644
- this.clear(); // explicitly clear the layout before cleaning up
7645
- super.dispose();
7646
- }
7647
7643
  setVisible(panel, visible) {
7648
7644
  switch (panel.api.location.type) {
7649
7645
  case 'grid':
@@ -7827,30 +7823,29 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
7827
7823
  }
7828
7824
  }
7829
7825
  else if (this.getPanel(group.id)) {
7830
- const removedGroup = group;
7826
+ group.model.renderContainer =
7827
+ this.overlayRenderContainer;
7828
+ returnedGroup = group;
7831
7829
  if (floatingBox) {
7832
- this.addFloatingGroup(removedGroup, {
7830
+ this.addFloatingGroup(group, {
7833
7831
  height: floatingBox.height,
7834
7832
  width: floatingBox.width,
7835
7833
  position: floatingBox,
7836
7834
  });
7837
7835
  }
7838
7836
  else {
7839
- this.doRemoveGroup(removedGroup, {
7837
+ this.doRemoveGroup(group, {
7840
7838
  skipDispose: true,
7841
7839
  skipActive: true,
7842
7840
  skipPopoutReturn: true,
7843
7841
  });
7844
- removedGroup.model.renderContainer =
7845
- this.overlayRenderContainer;
7846
- removedGroup.model.location = { type: 'grid' };
7847
- returnedGroup = removedGroup;
7842
+ group.model.location = { type: 'grid' };
7848
7843
  this.movingLock(() => {
7849
7844
  // suppress group add events since the group already exists
7850
- this.doAddGroup(removedGroup, [0]);
7845
+ this.doAddGroup(group, [0]);
7851
7846
  });
7852
7847
  }
7853
- this.doSetGroupAndPanelActive(removedGroup);
7848
+ this.doSetGroupAndPanelActive(group);
7854
7849
  }
7855
7850
  }));
7856
7851
  this._popoutGroups.push(value);