From ffc397f151c7370f3c4da19a713e4a924318d47a Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 16 Feb 2023 11:08:14 +0800 Subject: [PATCH] :bug: dock move --- app/src/layout/dock/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts index 33a497e28..32f0d4191 100644 --- a/app/src/layout/dock/index.ts +++ b/app/src/layout/dock/index.ts @@ -410,7 +410,7 @@ ${this.position === "Top" ? "top" : "bottom"}:0`); sourceElement.setAttribute("data-width", ""); const type = sourceElement.getAttribute("data-type") as TDockType; const sourceDock = getDockByType(type); - if (sourceDock.element.querySelectorAll(".dock__item").length === 2) { + if (sourceDock.element.querySelectorAll(".dock__item").length === 1) { sourceDock.element.classList.add("fn__none"); } const sourceWnd = sourceDock.layout.children[parseInt(sourceElement.getAttribute("data-index"))] as Wnd;