Resizing the iframe for Custom Web Activities

Resizing the iframe for Custom Web Activities

The steps to resize the iframe for custom web activities will vary; these are the general instructions.

  • In your application’s HTML, add the following code snippet to the <head> block or just above the </body> tag at the end of your content:

    • <script type="module" src="https://terracotta-js.s3.us-east-2.amazonaws.com/integrations.resize.custom.js"></script>

  • You may also need to add CSS to to the HTML to ensure it contains the page content for proper height calculations:

    • html{height:fit-content;}