Embed anvil on webpage

Hi,

I dont know if this is a bug or not. But i was trying to embedding my anvil app on my static website over at one.com and for some reason the height of the iframe increases infinite.

I get same result over at codepen.

Am i doing something wrong?

At the bottom of the image you can see that the height of the iframe is over 7000px and keeps increasing

Link to pen:
(https://codepen.io/manprinsen/pen/dyLxpeK)

This is what i copied

Not sure if it will work but try removing the embed.js script and keeping only the iframe tag. Then give it a manual height.

Your code may look something like this

<iframe style="width:100%; height: 100vh" data-anvil-embed src="https://online-store.anvil.app"></iframe>
1 Like