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
  */
@@ -7633,10 +7633,6 @@ define(['exports'], (function (exports) { 'use strict';
7633
7633
  this._api = new DockviewApi(this);
7634
7634
  this.updateWatermark();
7635
7635
  }
7636
- dispose() {
7637
- this.clear(); // explicitly clear the layout before cleaning up
7638
- super.dispose();
7639
- }
7640
7636
  setVisible(panel, visible) {
7641
7637
  switch (panel.api.location.type) {
7642
7638
  case 'grid':
@@ -7820,30 +7816,29 @@ define(['exports'], (function (exports) { 'use strict';
7820
7816
  }
7821
7817
  }
7822
7818
  else if (this.getPanel(group.id)) {
7823
- const removedGroup = group;
7819
+ group.model.renderContainer =
7820
+ this.overlayRenderContainer;
7821
+ returnedGroup = group;
7824
7822
  if (floatingBox) {
7825
- this.addFloatingGroup(removedGroup, {
7823
+ this.addFloatingGroup(group, {
7826
7824
  height: floatingBox.height,
7827
7825
  width: floatingBox.width,
7828
7826
  position: floatingBox,
7829
7827
  });
7830
7828
  }
7831
7829
  else {
7832
- this.doRemoveGroup(removedGroup, {
7830
+ this.doRemoveGroup(group, {
7833
7831
  skipDispose: true,
7834
7832
  skipActive: true,
7835
7833
  skipPopoutReturn: true,
7836
7834
  });
7837
- removedGroup.model.renderContainer =
7838
- this.overlayRenderContainer;
7839
- removedGroup.model.location = { type: 'grid' };
7840
- returnedGroup = removedGroup;
7835
+ group.model.location = { type: 'grid' };
7841
7836
  this.movingLock(() => {
7842
7837
  // suppress group add events since the group already exists
7843
- this.doAddGroup(removedGroup, [0]);
7838
+ this.doAddGroup(group, [0]);
7844
7839
  });
7845
7840
  }
7846
- this.doSetGroupAndPanelActive(removedGroup);
7841
+ this.doSetGroupAndPanelActive(group);
7847
7842
  }
7848
7843
  }));
7849
7844
  this._popoutGroups.push(value);