From: akodde Date: Tue, 15 Apr 2014 10:27:14 +0000 (+0200) Subject: Fix outerHeight for jQuery 1.8.0 version X-Git-Tag: v5.2.3~57^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4975%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git 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. --- 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);