dockview-angular 0.0.0-experimental-4e3871a-20251228 → 0.0.0-experimental-9b12ca8-20251228

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-angular
3
- * @version 0.0.0-experimental-4e3871a-20251228
3
+ * @version 0.0.0-experimental-9b12ca8-20251228
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -8562,7 +8562,14 @@ class DockviewComponent extends BaseGrid {
8562
8562
  if (options.debug) {
8563
8563
  this.addDisposables(new StrictEventsSequencing(this));
8564
8564
  }
8565
- this.addDisposables(this.rootDropTargetContainer, this.overlayRenderContainer, this._onWillDragPanel, this._onWillDragGroup, this._onWillShowOverlay, this._onDidActivePanelChange, this._onDidAddPanel, this._onDidRemovePanel, this._onDidLayoutFromJSON, this._onDidDrop, this._onWillDrop, this._onDidMovePanel, this._onDidAddGroup, this._onDidRemoveGroup, this._onDidActiveGroupChange, this._onUnhandledDragOverEvent, this._onDidMaximizedGroupChange, this._onDidOptionsChange, this._onDidPopoutGroupSizeChange, this._onDidPopoutGroupPositionChange, this._onDidOpenPopoutWindowFail, this.onDidViewVisibilityChangeMicroTaskQueue(() => {
8565
+ this.addDisposables(this.rootDropTargetContainer, this.overlayRenderContainer, this._onWillDragPanel, this._onWillDragGroup, this._onWillShowOverlay, this._onDidActivePanelChange, this._onDidAddPanel, this._onDidRemovePanel, this._onDidLayoutFromJSON, this._onDidDrop, this._onWillDrop, this._onDidMovePanel, this._onDidMovePanel.event(() => {
8566
+ /**
8567
+ * Update overlay positions after DOM layout completes to prevent 0×0 dimensions.
8568
+ * With defaultRenderer="always" this results in panel content not showing after move operations.
8569
+ * Debounced to avoid multiple calls when moving groups with multiple panels.
8570
+ */
8571
+ this.debouncedUpdateAllPositions();
8572
+ }), this._onDidAddGroup, this._onDidRemoveGroup, this._onDidActiveGroupChange, this._onUnhandledDragOverEvent, this._onDidMaximizedGroupChange, this._onDidOptionsChange, this._onDidPopoutGroupSizeChange, this._onDidPopoutGroupPositionChange, this._onDidOpenPopoutWindowFail, this.onDidViewVisibilityChangeMicroTaskQueue(() => {
8566
8573
  this.updateWatermark();
8567
8574
  }), this.onDidAdd((event) => {
8568
8575
  if (!this._moving) {
@@ -9766,6 +9773,15 @@ class DockviewComponent extends BaseGrid {
9766
9773
  }
9767
9774
  return re;
9768
9775
  }
9776
+ debouncedUpdateAllPositions() {
9777
+ if (this._updatePositionsFrameId !== undefined) {
9778
+ cancelAnimationFrame(this._updatePositionsFrameId);
9779
+ }
9780
+ this._updatePositionsFrameId = requestAnimationFrame(() => {
9781
+ this._updatePositionsFrameId = undefined;
9782
+ this.overlayRenderContainer.updateAllPositions();
9783
+ });
9784
+ }
9769
9785
  movingLock(func) {
9770
9786
  const isMoving = this._moving;
9771
9787
  try {
@@ -9836,13 +9852,6 @@ class DockviewComponent extends BaseGrid {
9836
9852
  panel: removedPanel,
9837
9853
  from: sourceGroup,
9838
9854
  });
9839
- /**
9840
- * Update overlay positions after DOM layout completes to prevent 0×0 dimensions.
9841
- * With defaultRenderer="always" this results in panel content not showing after move operations.
9842
- */
9843
- requestAnimationFrame(() => {
9844
- this.overlayRenderContainer.updateAllPositions();
9845
- });
9846
9855
  }
9847
9856
  else {
9848
9857
  /**