Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Work around for iOS iframe growth
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;
}
@arpo

This comment has been minimized.

Copy link

@arpo arpo commented Dec 7, 2016

So where should I put the doc id?

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Aug 28, 2018

I wish this were better documented :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment