dockview-core 2.1.2 → 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-core
3
- * @version 2.1.2
3
+ * @version 2.1.4
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -7637,10 +7637,6 @@
7637
7637
  this._api = new DockviewApi(this);
7638
7638
  this.updateWatermark();
7639
7639
  }
7640
- dispose() {
7641
- this.clear(); // explicitly clear the layout before cleaning up
7642
- super.dispose();
7643
- }
7644
7640
  setVisible(panel, visible) {
7645
7641
  switch (panel.api.location.type) {
7646
7642
  case 'grid':
@@ -7824,30 +7820,29 @@
7824
7820
  }
7825
7821
  }
7826
7822
  else if (this.getPanel(group.id)) {
7827
- const removedGroup = group;
7823
+ group.model.renderContainer =
7824
+ this.overlayRenderContainer;
7825
+ returnedGroup = group;
7828
7826
  if (floatingBox) {
7829
- this.addFloatingGroup(removedGroup, {
7827
+ this.addFloatingGroup(group, {
7830
7828
  height: floatingBox.height,
7831
7829
  width: floatingBox.width,
7832
7830
  position: floatingBox,
7833
7831
  });
7834
7832
  }
7835
7833
  else {
7836
- this.doRemoveGroup(removedGroup, {
7834
+ this.doRemoveGroup(group, {
7837
7835
  skipDispose: true,
7838
7836
  skipActive: true,
7839
7837
  skipPopoutReturn: true,
7840
7838
  });
7841
- removedGroup.model.renderContainer =
7842
- this.overlayRenderContainer;
7843
- removedGroup.model.location = { type: 'grid' };
7844
- returnedGroup = removedGroup;
7839
+ group.model.location = { type: 'grid' };
7845
7840
  this.movingLock(() => {
7846
7841
  // suppress group add events since the group already exists
7847
- this.doAddGroup(removedGroup, [0]);
7842
+ this.doAddGroup(group, [0]);
7848
7843
  });
7849
7844
  }
7850
- this.doSetGroupAndPanelActive(removedGroup);
7845
+ this.doSetGroupAndPanelActive(group);
7851
7846
  }
7852
7847
  }));
7853
7848
  this._popoutGroups.push(value);
@@ -8738,9 +8733,7 @@
8738
8733
  }));
8739
8734
  this.doRemoveGroup(sourceGroup, { skipActive: true });
8740
8735
  const newGroup = this.createGroupAtLocation(targetLocation);
8741
- this.movingLock(() => newGroup.model.openPanel(removedPanel, {
8742
- skipSetActive: true,
8743
- }));
8736
+ this.movingLock(() => newGroup.model.openPanel(removedPanel));
8744
8737
  this.doSetGroupAndPanelActive(newGroup);
8745
8738
  this._onDidMovePanel.fire({
8746
8739
  panel: this.getGroupPanel(sourceItemId),