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
  */
@@ -7614,10 +7614,6 @@
7614
7614
  this._api = new DockviewApi(this);
7615
7615
  this.updateWatermark();
7616
7616
  }
7617
- dispose() {
7618
- this.clear(); // explicitly clear the layout before cleaning up
7619
- super.dispose();
7620
- }
7621
7617
  setVisible(panel, visible) {
7622
7618
  switch (panel.api.location.type) {
7623
7619
  case 'grid':
@@ -7801,30 +7797,29 @@
7801
7797
  }
7802
7798
  }
7803
7799
  else if (this.getPanel(group.id)) {
7804
- const removedGroup = group;
7800
+ group.model.renderContainer =
7801
+ this.overlayRenderContainer;
7802
+ returnedGroup = group;
7805
7803
  if (floatingBox) {
7806
- this.addFloatingGroup(removedGroup, {
7804
+ this.addFloatingGroup(group, {
7807
7805
  height: floatingBox.height,
7808
7806
  width: floatingBox.width,
7809
7807
  position: floatingBox,
7810
7808
  });
7811
7809
  }
7812
7810
  else {
7813
- this.doRemoveGroup(removedGroup, {
7811
+ this.doRemoveGroup(group, {
7814
7812
  skipDispose: true,
7815
7813
  skipActive: true,
7816
7814
  skipPopoutReturn: true,
7817
7815
  });
7818
- removedGroup.model.renderContainer =
7819
- this.overlayRenderContainer;
7820
- removedGroup.model.location = { type: 'grid' };
7821
- returnedGroup = removedGroup;
7816
+ group.model.location = { type: 'grid' };
7822
7817
  this.movingLock(() => {
7823
7818
  // suppress group add events since the group already exists
7824
- this.doAddGroup(removedGroup, [0]);
7819
+ this.doAddGroup(group, [0]);
7825
7820
  });
7826
7821
  }
7827
- this.doSetGroupAndPanelActive(removedGroup);
7822
+ this.doSetGroupAndPanelActive(group);
7828
7823
  }
7829
7824
  }));
7830
7825
  this._popoutGroups.push(value);