mirror of
https://github.com/mathuo/dockview
synced 2025-08-03 15:56:01 +00:00
chore: fix
This commit is contained in:
parent
b28245b4af
commit
d7685db438
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user