• Resolved Terry J

    (@texasbiz)


    Strange happenings:)

    I have what I think are the correct settings, but the iframe is being resized to 413px.

    Under basic settings, I have width field set to 100%

    My shortcode:

    [advanced_iframe use_shortcode_attributes_only="true" src="https://example.com" width="100%" height="600" scroll="no" onload_resize="true" onload_resize_delay="1000" onload_resize_width="true"]
    

    The result of rendered html:

    <iframe id="advanced_iframe" name="advanced_iframe" src="https://example.com/" width="413" height="19672" frameborder="0" allowtransparency="true" loading="lazy" style="width: 413px; height: 19672px; margin-top: 0px; margin-bottom: 0px;" onload="setTimeout(function() { ;aiResizeIframe(ifrm_advanced_iframe, &quot;true&quot;,&quot;1&quot;);},1000)"></iframe>

    Have been back through settings many times and hoping you can get me back on track.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mdempfle

    (@mdempfle)

    Your problem is onload_resize_width=”true”

    It changes the width dynamically. Simply remove this from the shortcode and then the 100% from the administration are used.

    Shortcode always overwrites the settings from the administration.

    Best regards, Michael

    Thread Starter Terry J

    (@texasbiz)

    I had removed the onload_resize_width=”true” but forgot to clear cache ):

    Thanks and sorry for the silly question.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not setting 100% width’ is closed to new replies.