From b4338c702eb38a03d22ff78119d789fa990491bc Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 13 Feb 2015 15:50:20 -0500 Subject: [PATCH] Sticky component does not set height when already same height --- src/definitions/modules/sticky.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/definitions/modules/sticky.js b/src/definitions/modules/sticky.js index 294268a0f..6354f90a4 100644 --- a/src/definitions/modules/sticky.js +++ b/src/definitions/modules/sticky.js @@ -309,7 +309,9 @@ $.fn.sticky = function(parameters) { } else { module.debug('Settings container size', module.cache.context.height); - $container.height(module.cache.context.height); + if( Math.abs($container.height() - module.cache.context.height) > 5) { + $container.height(module.cache.context.height); + } } }, scroll: function(scroll) {