Created
September 12, 2017 15:34
-
-
Save matherton/fe5cfc2a5e5b670c59ed7e3ef67ba152 to your computer and use it in GitHub Desktop.
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
$(window).resize(function() { | |
var captions = $('.module-main-links .caption'), | |
height = 0; | |
captions.each(function() { | |
var captionHeight = $(this).outerHeight(); | |
if (captionHeight > height) { | |
height = captionHeight; | |
} | |
}); | |
captions.css('height', height+'px'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment