We’re running looker on our own infrastructure, I have an embedded dashboard which talks to the host through the looker embed-sdk.
I want to size the iframe to the size of the dashboard to prevent weird nested scrolling behaviour.
Is it possible to;
Solved! Go to Solution.
Hey there!
Nice thinking on making the embed experience cleaner with the dynamic height change. It sounds like the page:properties:changed
JS event might be helpful for the use case you’re describing. This event outputs the height of the dashboard, so picking it up from the iframe should allow you to edit the height of the iframe to line up!
There’s some great context on what the exact format looks like in the list here, which covers all the events that are sent out or receivable by the iframe: https://docs.looker.com/reference/embedding/embed-javascript-events#page:properties:changed