diff --git a/tldraw/apps/tldraw-logseq/src/lib/shapes/LogseqPortalShape.tsx b/tldraw/apps/tldraw-logseq/src/lib/shapes/LogseqPortalShape.tsx index 32fc801e32c..fddac8c7485 100644 --- a/tldraw/apps/tldraw-logseq/src/lib/shapes/LogseqPortalShape.tsx +++ b/tldraw/apps/tldraw-logseq/src/lib/shapes/LogseqPortalShape.tsx @@ -292,6 +292,15 @@ export class LogseqPortalShape extends TLBoxShape { const [loaded, setLoaded] = React.useState(false) + React.useEffect(() => { + if (!this.initialHeightCalculated) { + setTimeout(() => { + this.onResetBounds() + app.persist(true) + }) + } + }, [this.initialHeightCalculated]) + React.useEffect(() => { setTimeout(function () { setLoaded(true)