Request: Iframe Reload Action

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(); ]

Hi @Anders not sure if this will definitely help but could be worth a try… our iFrame element renders the iframe using open-iframe-resizer. Looking at the documentation, it seems like maybe if you load the open-iframe-resizer script into your iframe content that could improve things?

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

Tnx, Matt. I’ll try these … later this week.