mirror of
https://github.com/mathuo/dockview
synced 2025-02-13 03:45:47 +00:00
🐛 fix: set initial size and use proper window on event
This commit is contained in:
parent
693a3cd6ef
commit
6881daa593
@ -635,6 +635,7 @@ export class DockviewComponent
|
|||||||
options?.overridePopoutGroup ??
|
options?.overridePopoutGroup ??
|
||||||
this.createGroup({ id: groupId });
|
this.createGroup({ id: groupId });
|
||||||
group.model.renderContainer = overlayRenderContainer;
|
group.model.renderContainer = overlayRenderContainer;
|
||||||
|
group.layout(_window.window!.innerWidth, _window.window!.innerHeight);
|
||||||
|
|
||||||
if (!options?.overridePopoutGroup) {
|
if (!options?.overridePopoutGroup) {
|
||||||
this._onDidAddGroup.fire(group);
|
this._onDidAddGroup.fire(group);
|
||||||
@ -715,7 +716,7 @@ export class DockviewComponent
|
|||||||
_window.window!,
|
_window.window!,
|
||||||
'resize',
|
'resize',
|
||||||
() => {
|
() => {
|
||||||
group.layout(window.innerWidth, window.innerHeight);
|
group.layout(_window.window!.innerWidth, _window.window!.innerHeight);
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
overlayRenderContainer,
|
overlayRenderContainer,
|
||||||
|
Loading…
Reference in New Issue
Block a user