Created
July 21, 2011 22:05
-
-
Save mattboon/1098351 to your computer and use it in GitHub Desktop.
JS fix for Media Query iFrames
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
$(document).ready(function() { | |
$(window).resize(function(){ | |
$("iframe").css({ | |
width: "100%", | |
height: ($(this).width()) * .58 | |
}); | |
}); | |
$(window).resize(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment