dockview-core 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-core
3
- * @version 2.1.3
3
+ * @version 2.1.4
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -7667,10 +7667,6 @@
7667
7667
  this._api = new DockviewApi(this);
7668
7668
  this.updateWatermark();
7669
7669
  }
7670
- dispose() {
7671
- this.clear(); // explicitly clear the layout before cleaning up
7672
- super.dispose();
7673
- }
7674
7670
  setVisible(panel, visible) {
7675
7671
  switch (panel.api.location.type) {
7676
7672
  case 'grid':
@@ -7854,30 +7850,29 @@
7854
7850
  }
7855
7851
  }
7856
7852
  else if (this.getPanel(group.id)) {
7857
- const removedGroup = group;
7853
+ group.model.renderContainer =
7854
+ this.overlayRenderContainer;
7855
+ returnedGroup = group;
7858
7856
  if (floatingBox) {
7859
- this.addFloatingGroup(removedGroup, {
7857
+ this.addFloatingGroup(group, {
7860
7858
  height: floatingBox.height,
7861
7859
  width: floatingBox.width,
7862
7860
  position: floatingBox,
7863
7861
  });
7864
7862
  }
7865
7863
  else {
7866
- this.doRemoveGroup(removedGroup, {
7864
+ this.doRemoveGroup(group, {
7867
7865
  skipDispose: true,
7868
7866
  skipActive: true,
7869
7867
  skipPopoutReturn: true,
7870
7868
  });
7871
- removedGroup.model.renderContainer =
7872
- this.overlayRenderContainer;
7873
- removedGroup.model.location = { type: 'grid' };
7874
- returnedGroup = removedGroup;
7869
+ group.model.location = { type: 'grid' };
7875
7870
  this.movingLock(() => {
7876
7871
  // suppress group add events since the group already exists
7877
- this.doAddGroup(removedGroup, [0]);
7872
+ this.doAddGroup(group, [0]);
7878
7873
  });
7879
7874
  }
7880
- this.doSetGroupAndPanelActive(removedGroup);
7875
+ this.doSetGroupAndPanelActive(group);
7881
7876
  }
7882
7877
  }));
7883
7878
  this._popoutGroups.push(value);