<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Betreff: Form Height calculation of iFrames does not work properly. in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Form-Height-calculation-of-iFrames-does-not-work-properly/m-p/938008#M38206</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/108454"&gt;@joyce&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;thanks for your comment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I have any chance at all of setting something else? I can't change the iFrame and I can't tell the browser to load it differently, can I? Otherwise it would have to be set for each browser if they all calculate it differently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If a form is initially loaded with a height of 990px and is loaded correctly with 1014px after clicking on the input field. Is it then due to the browser saying I am only loading the form with 990px? Shouldn't the iFrame give the browser the correct height?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sebastinho&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2024 15:42:00 GMT</pubDate>
    <dc:creator>Sebastinho</dc:creator>
    <dc:date>2024-03-05T15:42:00Z</dc:date>
    <item>
      <title>Form Height calculation of iFrames does not work properly.</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Form-Height-calculation-of-iFrames-does-not-work-properly/m-p/933619#M38073</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;we have a problem with our forms, these are embedded via an iFrame on our Wordpress website. When initially loading the website, the buttons at the end of the forms are sometimes cut off or are not visible at all so that the height of the forms is not calculated correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the page is refreshed or a form is started to be filled in, the height is recalculated exactly and the button is visible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an example, I have created a test page with various forms with different fonts.&amp;nbsp;&lt;A href="https://www.eggheads.net/form-test/" target="_blank" rel="noopener"&gt;https://www.eggheads.net/form-test/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The screenshots below show how the forms behave on my screen in Firefox. Mobile via Apple and Safari, for example, you can't see any buttons at all. Depending on the device and browser, the problem behaves differently (not showing, cut off).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can I do to ensure that the height calculation works exactly everywhere?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Sebastinho&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Screenshots:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Download-Form_Font_Sora_Height_666.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/111553i7875A85FFE89F994/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Download-Form_Font_Sora_Height_666.png" alt="Download-Form_Font_Sora_Height_666.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Download-Form_Font_Titilium Web_Height_666.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/111552i8A893FA3839E950D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Download-Form_Font_Titilium Web_Height_666.png" alt="Download-Form_Font_Titilium Web_Height_666.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kontakt-Form_Font_Sora_Height_804.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/111554i99EC3AFA3A3F0C97/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kontakt-Form_Font_Sora_Height_804.png" alt="Kontakt-Form_Font_Sora_Height_804.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kontakt-Form_Font_Titilium Web_Height_804.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/111555iF185BC25D845899B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kontakt-Form_Font_Titilium Web_Height_804.png" alt="Kontakt-Form_Font_Titilium Web_Height_804.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Demo-Form_Font_Sora_Height_796.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/111556iEBFC094EF645F511/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Demo-Form_Font_Sora_Height_796.png" alt="Demo-Form_Font_Sora_Height_796.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Demo-Form_Font_Titilium Web_Height_796.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/111557i48AEEAB70CC53B96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Demo-Form_Font_Titilium Web_Height_796.png" alt="Demo-Form_Font_Titilium Web_Height_796.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 14:49:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Form-Height-calculation-of-iFrames-does-not-work-properly/m-p/933619#M38073</guid>
      <dc:creator>Sebastinho</dc:creator>
      <dc:date>2024-02-27T14:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Form Height calculation of iFrames does not work properly.</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Form-Height-calculation-of-iFrames-does-not-work-properly/m-p/934066#M38093</link>
      <description>&lt;P&gt;Hey, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/139932"&gt;@Sebastinho&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for your question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I understand the root issue. The form resizing issue on initial load compared to reload likely occurs due to timing differences. The challenge is related to how different browsers and devices calculate and render iFrames.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd like to invite some of our community members to the conversation — hey &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/45095"&gt;@JonPayne&lt;/a&gt;&lt;/SPAN&gt; &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/166093"&gt;@miljkovicmisa&lt;/a&gt;&lt;/SPAN&gt; &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/91608"&gt;@alyssamwilie&lt;/a&gt;&lt;/SPAN&gt;, do you have any thoughts on the challenge &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/139932"&gt;@Sebastinho&lt;/a&gt;&lt;/SPAN&gt; is facing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 23:30:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Form-Height-calculation-of-iFrames-does-not-work-properly/m-p/934066#M38093</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-02-27T23:30:27Z</dc:date>
    </item>
    <item>
      <title>Betreff: Form Height calculation of iFrames does not work properly.</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Form-Height-calculation-of-iFrames-does-not-work-properly/m-p/938008#M38206</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/108454"&gt;@joyce&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;thanks for your comment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I have any chance at all of setting something else? I can't change the iFrame and I can't tell the browser to load it differently, can I? Otherwise it would have to be set for each browser if they all calculate it differently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If a form is initially loaded with a height of 990px and is loaded correctly with 1014px after clicking on the input field. Is it then due to the browser saying I am only loading the form with 990px? Shouldn't the iFrame give the browser the correct height?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sebastinho&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 15:42:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Form-Height-calculation-of-iFrames-does-not-work-properly/m-p/938008#M38206</guid>
      <dc:creator>Sebastinho</dc:creator>
      <dc:date>2024-03-05T15:42:00Z</dc:date>
    </item>
    <item>
      <title>Betreff: Form Height calculation of iFrames does not work properly.</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Form-Height-calculation-of-iFrames-does-not-work-properly/m-p/940381#M38276</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp; i have probably found the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the forms are loaded, the height is calculated using a different font, presumably the HubSpot fallback font. Then, in our case, the Sora font is loaded and since the spacing is larger there than with other fonts, the buttons are cut off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the page is refreshed or the form is clicked, the height is recalculated with the defined form font, in this case Sora, and then calculated correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If all forms are displayed in Titilium Web, Arial or Times New Roman, the form display also works correctly on initial loading.&amp;nbsp;Since the height difference to these fonts is not so great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone confirm this?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 16:00:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Form-Height-calculation-of-iFrames-does-not-work-properly/m-p/940381#M38276</guid>
      <dc:creator>Sebastinho</dc:creator>
      <dc:date>2024-03-08T16:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Form Height calculation of iFrames does not work properly.</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Form-Height-calculation-of-iFrames-does-not-work-properly/m-p/1187490#M43854</link>
      <description>&lt;P&gt;I’ve run into a similar issue when embedding content in iframes for my own site &lt;A href="https://heightcomparisonchart.com/" target="_blank" rel="noopener"&gt;https://heightcomparisonchart.com/&lt;/A&gt;, and it usually comes down to how and when the iframe height is calculated. If the script that resizes the iframe only runs on page load, it can easily miscalculate because fonts, images, or other assets inside the form may load later and push the content down. That’s why refreshing or interacting with the form makes it resize correctly. One fix is to make sure the iframe’s height calculation script runs on additional events like window.onload, DOMContentLoaded, and also after assets inside the iframe finish loading. Some people also use a MutationObserver or a resize listener inside the iframe to send the correct height to the parent page dynamically. On the HubSpot side, enabling “Resize automatically” in the embed settings (if available) or adjusting the embed code to use their recommended postMessage-based resizing script can help ensure the button never gets cut off across browsers and devices.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 20:24:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Form-Height-calculation-of-iFrames-does-not-work-properly/m-p/1187490#M43854</guid>
      <dc:creator>afatwa</dc:creator>
      <dc:date>2025-08-11T20:24:01Z</dc:date>
    </item>
  </channel>
</rss>

