Skip to content

Commit

Permalink
bug: fix overlay container for popout to floating
Browse files Browse the repository at this point in the history
  • Loading branch information
mathuo committed Dec 22, 2024
1 parent 487d02b commit 11aadf5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/dockview-core/src/dockview/dockviewComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,10 @@ export class DockviewComponent
} else if (this.getPanel(group.id)) {
const removedGroup = group;

removedGroup.model.renderContainer =
this.overlayRenderContainer;
returnedGroup = removedGroup;

if (floatingBox) {
this.addFloatingGroup(removedGroup, {
height: floatingBox.height,
Expand All @@ -857,10 +861,7 @@ export class DockviewComponent
skipPopoutReturn: true,
});

removedGroup.model.renderContainer =
this.overlayRenderContainer;
removedGroup.model.location = { type: 'grid' };
returnedGroup = removedGroup;

this.movingLock(() => {
// suppress group add events since the group already exists
Expand Down

0 comments on commit 11aadf5

Please sign in to comment.