瀏覽代碼

fix: innerheight minor change

Peng Xiao 3 年之前
父節點
當前提交
3ed5476ba8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tldraw/apps/tldraw-logseq/src/lib/shapes/LogseqPortalShape.tsx

+ 1 - 1
tldraw/apps/tldraw-logseq/src/lib/shapes/LogseqPortalShape.tsx

@@ -311,7 +311,7 @@ export class LogseqPortalShape extends TLBoxShape<LogseqPortalShapeProps> {
 
     React.useEffect(() => {
       if (this.shouldAutoResizeHeight()) {
-        const newHeight = innerHeight + this.getHeaderHeight()
+        const newHeight = innerHeight + this.getHeaderHeight() + 2
         if (innerHeight && newHeight !== this.props.size[1]) {
           this.update({
             size: [this.props.size[0], newHeight],