From 0d579a8cb46ae6297b3ac72663e467941980f4f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Quesada?= Date: Mon, 28 Dec 2015 15:14:43 +0100 Subject: [PATCH] Overflow the footer in some cases Element overflows the footer when element heigh plus offset top is greater than window height plus footer --- jquery.lockfixed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.lockfixed.js b/jquery.lockfixed.js index 72f6934..59b15f3 100644 --- a/jquery.lockfixed.js +++ b/jquery.lockfixed.js @@ -6,7 +6,7 @@ * Released under the MIT license * http://www.directlyrics.com/code/lockfixed/license.txt * - * Date: Wed April 1 2015 12:00:01 GMT + * Date: Mon December 28 2015 14:56:01 GMT+1 */ (function($, undefined) { $.extend({ @@ -67,7 +67,7 @@ if (scroll_top >= (el_top - (el_margin_top ? el_margin_top : 0) - config.offset.top)) { if (max_height < (scroll_top + el_height + el_margin_top + config.offset.top) && - el_height + config.offset.top > $(window).height() + el_height + config.offset.top + config.offset.bottom > $(window).height() ) { top = (scroll_top + el_height + el_margin_top + config.offset.top) - max_height; } else {