Created
August 8, 2014 15:41
-
-
Save maxxcrawford/c25a6cbeba92de9b4d4e to your computer and use it in GitHub Desktop.
Set All Slides to Tallest Slide in Rotator
This file contains hidden or 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
function updateSize() { | |
var rotatorHeight = $('.owl-carousel').height(), | |
slides = $('.owl-item'); | |
slideSetHeight = slides.first().height(); | |
slides.each(function(){ | |
var slideHeight = $(this).height(); | |
if (slideHeight > slideSetHeight){ | |
slideSetHeight = slideHeight | |
} | |
}); | |
slides.children().css('height', slideSetHeight + 'px'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment