AMP Iframe forcing 400px height
-
We are using an iframe from captivate.fm:
<div style=”width: 100%; height: 200px; margin-bottom: 10px; border-radius: 6px; overflow: hidden;”><iframe style=”width: 100%; height: 200px;” frameborder=”no” scrolling=”no” seamless src=”https://player.captivate.fm/episode/495621d8-6f05-4d95-bbaa-369a9a6189e1″></iframe></div>
Displays as expected on desktop view. On Amp, it looks like this:
<amp-iframe frameborder="0" scrolling="no" src="https://player.captivate.fm/episode/495621d8-6f05-4d95-bbaa-369a9a6189e1" height="400" layout="fixed-height" width="auto" sandbox="allow-downloads allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation" data-amp-original-style="width: 100%; height: 200px;" class="amp-wp-59f8e90 i-amphtml-layout-fixed-height i-amphtml-layout-size-defined i-amphtml-element i-amphtml-built i-amphtml-layout" style="/*! height: 400px; */ --loader-delay-offset: 107ms !important;" i-amphtml-layout="fixed-height"><span placeholder="" class="amp-wp-iframe-placeholder amp-hidden"></span><noscript><iframe frameborder="0" scrolling="no" src="https://player.captivate.fm/episode/495621d8-6f05-4d95-bbaa-369a9a6189e1"></iframe></noscript><iframe class="i-amphtml-fill-content" name="amp_iframe0" style="z-index: 0;" scrolling="no" allow="" sandbox="allow-downloads allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation" src="https://player.captivate.fm/episode/495621d8-6f05-4d95-bbaa-369a9a6189e1#amp=1" frameborder="0"></iframe></amp-iframe>
The 400px height of the amp-iframe is throwing off the player’s controls. Is there a way to not have the height set to 400px here?
Thanks!
- The topic ‘AMP Iframe forcing 400px height’ is closed to new replies.