137
Views
5
Comments
OutSystems Static Site inside an iFrame
Question
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
2020-08-05 08-52-58
Ruben Goncalves
Hi Pedro,

Is the size of the iframe changing?

Cheers,
RG
2018-09-15 21-30-12
Pedro Remedios
Hi Ruben,

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

Cheers,

Pedro
2020-08-05 08-52-58
Ruben Goncalves
Are you using silk?
Can you share a live example?
UserImage.jpg
Team 1 IT Up
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.
2020-08-05 08-52-58
Ruben Goncalves
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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.