Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Pedro Remedios
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
Ruben Goncalves
Hi Pedro,
Is the size of the iframe changing?
Cheers,
RG
Pedro Remedios
Hi Ruben,
Yes it is. We are using iFrame Resizer from Github.
Cheers,
Pedro
Ruben Goncalves
Are you using silk?
Can you share a live example?
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.
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 Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...