My iframes sometimes comes out as Image 1 when expected to look like Image 2
Here’s a strong request:
Since Iframes get incorrect size info from main app when first loaded when hidden, it would make my life so much easier (even happier:D ) if there was a “reload Iframe” action that simply tells the Iframe object to reload.
[ Easy enough in javascript: document.getElementById(‘some_frame_id’).contentWindow.location.reload(); ]
Another possible option to try would be forcing a reload in your iframe content when Evolve initiates the communication, so changing the addEventListener function in your code to something like this:
window.addEventListener("message", (e) => {
if (e.data === "evolve-iframe") {
// code to handle reload or force layout update here
window.evolve = e.ports[0];
}
});
I’m slightly less sure about this option but it could be worth trying anyway