I have the next situation. I have frame, inside amp-frame. If amp frame fully visible like on image , after content loaded amp-frame doesn't change height. I call it this way
window.parent.postMessage(
{
sentinel: 'amp',
type: 'embed-size',
height: size.height
},
'*'
)
But if amp-frame visible on, for example, 20% and after content loaded i scroll, the height is changed. Could you help me why it happens?