diff --git a/src/embed/iframeSizer.js b/src/embed/iframeSizer.js
index a851ce67b..f8f57e3e0 100644
--- a/src/embed/iframeSizer.js
+++ b/src/embed/iframeSizer.js
@@ -5,6 +5,7 @@ export function informSize(
useScrollDimension = true,
updateStyleProps = false,
) {
+ console.log("informSize", element);
if (!element) return;
// Inform a parent window about an embed size
@@ -35,8 +36,9 @@ export function informSize(
export function setupResizeEvent(iframe) {
window.addEventListener("message", (event) => {
+ console.log("Message sent!", event.data);
if (event.source == iframe.contentWindow) {
- console.log("Message received!", event.data);
+ console.log("iframe message received!", event.data);
const { width, height, updateStyleProps } = event.data;
if (width != null) {
iframe.width = width;
diff --git a/src/routes/embed/documents/[id]/pages/[page]/+page.svelte b/src/routes/embed/documents/[id]/pages/[page]/+page.svelte
index cb38a9ca5..1134d1626 100644
--- a/src/routes/embed/documents/[id]/pages/[page]/+page.svelte
+++ b/src/routes/embed/documents/[id]/pages/[page]/+page.svelte
@@ -81,9 +81,9 @@
/>
-
+ informSize(elem)} />
-