Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:2388015
Created Apr 14, 2012

What would you like to do?
iOS fix for iframe cropping
<script type="text/javascript" src=""></script>
<script type="text/javascript">
if (/iPhone|iPod|iPad/.test(navigator.userAgent))
var $this = $(this);
return $('<div />').css({
width: $this.attr('width'),
height: $this.attr('height'),
overflow: 'auto',
'-webkit-overflow-scrolling': 'touch'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment