Skip to content

Instantly share code, notes, and snippets.

@jamesmusgrave
Forked from bdalziel/gist:2293724
Last active September 19, 2017 20:22
Show Gist options
  • Save jamesmusgrave/7fb1bdef8417417bf9d3 to your computer and use it in GitHub Desktop.
Save jamesmusgrave/7fb1bdef8417417bf9d3 to your computer and use it in GitHub Desktop.
html,
body,
#doc {
height: 100%; // Passes through the height of the parent iframe element
}
#doc {
// Magic to prevent iOS growing the iFrame to fit the content.
// This container will mimic the behavior of the iframe on a desktop browser
-webkit-overflow-scrolling:touch;
overflow-y: scroll;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment