From 312aeded255be95d710f867da64078a21149bf83 Mon Sep 17 00:00:00 2001 From: mathuo <6710312+mathuo@users.noreply.github.com> Date: Wed, 10 Jan 2024 15:42:27 +0000 Subject: [PATCH] feat: popout window position account for window.screen position --- packages/dockview-core/src/dockview/dockviewComponent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dockview-core/src/dockview/dockviewComponent.ts b/packages/dockview-core/src/dockview/dockviewComponent.ts index 019b2789a..e91996725 100644 --- a/packages/dockview-core/src/dockview/dockviewComponent.ts +++ b/packages/dockview-core/src/dockview/dockviewComponent.ts @@ -543,8 +543,8 @@ export class DockviewComponent className: theme ?? '', popoutUrl: options?.popoutUrl ?? '/popout.html', box: { - left: box.left, - top: box.top, + left: window.screenX + box.left, + top: window.screenY + box.top, width: box.width, height: box.height, },