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