chore: fix

This commit is contained in:
mathuo 2025-06-16 22:35:37 +01:00
parent b28245b4af
commit d7685db438
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281

View File

@ -720,10 +720,13 @@ export class DockviewComponent
return false; return false;
} }
const referenceGroup = const referenceGroup = options?.referenceGroup
itemToPopout instanceof DockviewPanel ? options.referenceGroup
? itemToPopout.group : itemToPopout instanceof DockviewPanel
: itemToPopout; ? itemToPopout.group
: itemToPopout;
const referenceLocation = itemToPopout.api.location.type;
/** /**
* The group that is being added doesn't already exist within the DOM, the most likely occurrence * The group that is being added doesn't already exist within the DOM, the most likely occurrence
@ -740,6 +743,7 @@ export class DockviewComponent
group = options.overridePopoutGroup; group = options.overridePopoutGroup;
} else { } else {
group = this.createGroup({ id: groupId }); group = this.createGroup({ id: groupId });
if (popoutContainer) { if (popoutContainer) {
this._onDidAddGroup.fire(group); this._onDidAddGroup.fire(group);
} }
@ -777,8 +781,6 @@ export class DockviewComponent
this this
); );
const referenceLocation = itemToPopout.api.location.type;
group.model.renderContainer = overlayRenderContainer; group.model.renderContainer = overlayRenderContainer;
group.layout( group.layout(
_window.window!.innerWidth, _window.window!.innerWidth,