From ce7bec998ec208a442cb7e1f5d7cd53beec8beb0 Mon Sep 17 00:00:00 2001 From: Serhat Date: Tue, 1 Sep 2015 11:49:40 +0300 Subject: [PATCH] Parent height error fix If we want to fixed box when scroll come to bottom, we need to use element parent hide. you are using element height. This is mistake. --- jquery.sticky-kit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.sticky-kit.js b/jquery.sticky-kit.js index e98c9a4..5efd9ee 100644 --- a/jquery.sticky-kit.js +++ b/jquery.sticky-kit.js @@ -99,7 +99,7 @@ if (spacer) { spacer.css({ width: outer_width(elm), - height: height, + height: elm.parent().outerHeight(true), display: elm.css("display"), "vertical-align": elm.css("vertical-align"), "float": el_float