Skip to content

Instantly share code, notes, and snippets.

@mirontoli
Created July 3, 2012 06:12
Show Gist options
  • Save mirontoli/3038009 to your computer and use it in GitHub Desktop.
Save mirontoli/3038009 to your computer and use it in GitHub Desktop.
fancybox resize
function adjustHeight() {
if (window.parent && window.parent.jQuery) {
var content = jQuery("#content");
if (content) {
var height = content.height() + 1;
window.parent.jQuery("#fancybox-content").height(height);
}
}
}
jQuery(window).load(adjustHeight);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment