fix: sync plugin slot iframe height with reported content height

This commit is contained in:
Linus Rath
2026-05-21 17:59:24 +02:00
parent 33e655bcce
commit e6782e61a8
+4
View File
@@ -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;
}