Skip to content

Instantly share code, notes, and snippets.

@eccentricpixel
Created December 28, 2014 10:05
Show Gist options
  • Save eccentricpixel/9a47272425f9c8085b78 to your computer and use it in GitHub Desktop.
Save eccentricpixel/9a47272425f9c8085b78 to your computer and use it in GitHub Desktop.
Here is a fix for equalizer calculating the height of the element before interchange has finished loading the appropriate image. This reinitializes equalizer after the image is set. #foundation
$(document).on('replace', 'img', function() {
$(document).foundation('equalizer', 'reflow');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment