From 2b2d6fb5a8832997e310af85d113b7c0357171dc Mon Sep 17 00:00:00 2001 From: akodde Date: Tue, 15 Apr 2014 12:27:14 +0200 Subject: [PATCH] Fix outerHeight for jQuery 1.8.0 version The parameter 'includeMargin' is set to false by default (https://api.jquery.com/outerHeight/). However due to a bug in jQuery 1.8.0 the outerHeight returns an object instead of an integer: http://bugs.jquery.com/ticket/12159 Adding 'false' fixes the equalizer for jQuery 1.8.0 and wouldn't do harm as it is set to false by default. --- js/foundation/foundation.equalizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation/foundation.equalizer.js b/js/foundation/foundation.equalizer.js index 6846a7aa7..4b17bb4ba 100644 --- a/js/foundation/foundation.equalizer.js +++ b/js/foundation/foundation.equalizer.js @@ -42,7 +42,7 @@ }); if (isStacked) return; - var heights = vals.map(function(){ return $(this).outerHeight() }).get(); + var heights = vals.map(function(){ return $(this).outerHeight(false) }).get(); if (settings.use_tallest) { var max = Math.max.apply(null, heights); vals.css('height', max); -- 2.47.2