From e6782e61a815163d92ddb4781d319bbc7c1b8ddf Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Thu, 21 May 2026 17:59:24 +0200 Subject: [PATCH] fix: sync plugin slot iframe height with reported content height --- lib/plugin-sandbox/host-bridge.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/plugin-sandbox/host-bridge.ts b/lib/plugin-sandbox/host-bridge.ts index a421a136..dd41be52 100644 --- a/lib/plugin-sandbox/host-bridge.ts +++ b/lib/plugin-sandbox/host-bridge.ts @@ -236,6 +236,10 @@ export class SandboxInstance { } case 'slot-resize': + // The iframe has no intrinsic height — sync it to the content height + // the sandbox reported, otherwise the wrapper reserves space but the + // iframe stays at 0px and the slot appears blank. + this.iframe.style.height = `${msg.height}px`; this.slotResizeCb?.(msg.height); return; }