OutSystems Static Site inside an iFrame

OutSystems Static Site inside an iFrame

  
I have a static site built with OutSystems running in an iFrame. On an iPhone/iPad, if I change orientation, I have to force a refresh to reflect changes. How can I do that automatically? I have this in the index.html with the iframe:

<meta name="viewport" content="width=device-width, initial-scale=1">

If I run the static site without iframe, the orientation changes are being noticed. Is there something I'm missing?

Thanks,

Pedro
Hi Pedro,

Is the size of the iframe changing?

Cheers,
RG
Hi Ruben,

Yes it is. We are using iFrame Resizer from Github.

Cheers,

Pedro
Are you using silk?
Can you share a live example?
Yes we are using Silk. If we access the static site directly, It re-renders on rotation. I think it's capturing onorientationchange in a javascript somewhere. I would like to replicate that outside the iFrame Resizer.
I think it's capturing onorientationchange in a javascript somewhere
Yes SILK UI uses orientationchange event.


I would like to replicate that outside the iFrame Resizer.
You can open SilkUIFramework module and see how we are capturing and using it.

Let me know if you need further help.

Cheers,

RG