Created
April 3, 2012 17:07
-
-
Save bdalziel/2293724 to your computer and use it in GitHub Desktop.
Work around for iOS iframe growth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
So where should I put the doc id?