From b434b779bbc00f7318e611e02173d384d8e9160d Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 22 Feb 2023 14:58:15 +0800 Subject: [PATCH] :recycle: https://github.com/siyuan-note/siyuan/issues/7431 --- app/src/layout/util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts index 738e3abd7..5f6cd0590 100644 --- a/app/src/layout/util.ts +++ b/app/src/layout/util.ts @@ -681,11 +681,11 @@ export const addResize = (obj: Layout | Wnd) => { if (previousNowSize < 8 || nextNowSize < 8) { return; } - if (window.siyuan.layout.leftDock?.layout.element.contains(previousElement) && + if (window.siyuan.layout.leftDock?.layout.element.isSameNode(previousElement) && previousNowSize < getMinSize(previousElement)) { return; } - if (window.siyuan.layout.rightDock?.layout.element.contains(nextElement) && + if (window.siyuan.layout.rightDock?.layout.element.isSameNode(nextElement) && nextNowSize < getMinSize(nextElement)) { return; }