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