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
  */
@@ -7663,10 +7663,6 @@ class DockviewComponent extends BaseGrid {
7663
7663
  this._api = new DockviewApi(this);
7664
7664
  this.updateWatermark();
7665
7665
  }
7666
- dispose() {
7667
- this.clear(); // explicitly clear the layout before cleaning up
7668
- super.dispose();
7669
- }
7670
7666
  setVisible(panel, visible) {
7671
7667
  switch (panel.api.location.type) {
7672
7668
  case 'grid':
@@ -7850,30 +7846,29 @@ class DockviewComponent extends BaseGrid {
7850
7846
  }
7851
7847
  }
7852
7848
  else if (this.getPanel(group.id)) {
7853
- const removedGroup = group;
7849
+ group.model.renderContainer =
7850
+ this.overlayRenderContainer;
7851
+ returnedGroup = group;
7854
7852
  if (floatingBox) {
7855
- this.addFloatingGroup(removedGroup, {
7853
+ this.addFloatingGroup(group, {
7856
7854
  height: floatingBox.height,
7857
7855
  width: floatingBox.width,
7858
7856
  position: floatingBox,
7859
7857
  });
7860
7858
  }
7861
7859
  else {
7862
- this.doRemoveGroup(removedGroup, {
7860
+ this.doRemoveGroup(group, {
7863
7861
  skipDispose: true,
7864
7862
  skipActive: true,
7865
7863
  skipPopoutReturn: true,
7866
7864
  });
7867
- removedGroup.model.renderContainer =
7868
- this.overlayRenderContainer;
7869
- removedGroup.model.location = { type: 'grid' };
7870
- returnedGroup = removedGroup;
7865
+ group.model.location = { type: 'grid' };
7871
7866
  this.movingLock(() => {
7872
7867
  // suppress group add events since the group already exists
7873
- this.doAddGroup(removedGroup, [0]);
7868
+ this.doAddGroup(group, [0]);
7874
7869
  });
7875
7870
  }
7876
- this.doSetGroupAndPanelActive(removedGroup);
7871
+ this.doSetGroupAndPanelActive(group);
7877
7872
  }
7878
7873
  }));
7879
7874
  this._popoutGroups.push(value);