michelmany
8/18/2016 - 3:21 PM

Function Equal Heigh

Function Equal Heigh

		equalHeights: function() {

			var maxHeight = -1;
			var addSpace = 20;

			if ($(window).width() > 767) {

				$('.grid-content-container').each(function() {
					maxHeight = maxHeight > $(this).height() ? maxHeight : $(this).height() + addSpace;
				});

				$('.grid-content-container').each(function() {
					$(this).height(maxHeight);
				});
			
			}

		}