From fb47ee41cad627647cab0228e0a9876f193f212d Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 24 Sep 2022 21:57:16 +0800 Subject: [PATCH] :children_crossing: fix https://github.com/siyuan-note/siyuan/issues/5944 --- app/src/block/Panel.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/block/Panel.ts b/app/src/block/Panel.ts index 0bbcbd4ce..66b00608c 100644 --- a/app/src/block/Panel.ts +++ b/app/src/block/Panel.ts @@ -295,10 +295,6 @@ export class BlockPanel { setPosition(this.element, targetRect.left, targetRect.top + targetRect.height + 4, targetRect.height + 12, 8); } - const maxHeight = (window.innerHeight - this.element.getBoundingClientRect().top - 8) + "px"; - this.element.style.maxHeight = maxHeight; - if (this.nodeIds.length > 1) { - this.element.style.height = maxHeight; - } + this.element.style.maxHeight = (window.innerHeight - this.element.getBoundingClientRect().top - 8) + "px"; } }