- Issue created by @larowlan
In useSyncIframeHeightToContent
we make use of iframeHTML.offsetHeight
to set the height of the viewport.
If the css for the page has either of html
or body
set to height: 100%
or block-size: 100%
this doesn't work and the viewport is clipped to the min height of the viewport (ie. the passed height).
Here's a simple codepen to demonstrate the issue https://codepen.io/larowlan/pen/MYaZwqj
To revert to a working state, change this in the html
<style>body,html { block-size: 100%; }</style>
to this
<style>body,html { block-size: auto; }</style>
Active
1.0
Page builder