Page not scaled properly for mobile when loaded in iframe

  • 1
  • Problem
  • Updated 1 year ago
  • In Progress
I've built a force.com site which uses a vf page which points to a skuid page.

Works great and responds well to screen size when loading the force.com site itself:



However, loading the page within an iframe on my workpress site produces this:


Not so cool for mobile.

Any thoughts on what might be going wrong here?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 1 year ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Did you try setting the page to "scale to mobile".
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Hmm. I'm thinking this must have something to do with my website?

The skuidpage responds well in an iframe when I drop it into a different page like this:


Anyone have any ideas?
Photo of Stephen Sells

Stephen Sells, Official Rep

  • 16,856 Points 10k badge 2x thumb
Sounds like the workpress site is doing something to the page to where the iframe no longer thinks it is on a mobile page