Vanessa 2023-02-22 14:58:15 +08:00
parent 645d7a089f
commit b434b779bb

View file

@ -681,11 +681,11 @@ export const addResize = (obj: Layout | Wnd) => {
if (previousNowSize < 8 || nextNowSize < 8) { if (previousNowSize < 8 || nextNowSize < 8) {
return; return;
} }
if (window.siyuan.layout.leftDock?.layout.element.contains(previousElement) && if (window.siyuan.layout.leftDock?.layout.element.isSameNode(previousElement) &&
previousNowSize < getMinSize(previousElement)) { previousNowSize < getMinSize(previousElement)) {
return; return;
} }
if (window.siyuan.layout.rightDock?.layout.element.contains(nextElement) && if (window.siyuan.layout.rightDock?.layout.element.isSameNode(nextElement) &&
nextNowSize < getMinSize(nextElement)) { nextNowSize < getMinSize(nextElement)) {
return; return;
} }