From 756a6be811f1d283717752c7dac06510af78714e Mon Sep 17 00:00:00 2001 From: Raymond Schweers Date: Mon, 22 Feb 2016 22:41:24 +0100 Subject: [PATCH] Added option force_sticky --- sticky-kit.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sticky-kit.coffee b/sticky-kit.coffee index 8f2ef60..1b8f9bd 100644 --- a/sticky-kit.coffee +++ b/sticky-kit.coffee @@ -14,6 +14,7 @@ $.fn.stick_in_parent = (opts={}) -> offset_top spacer: manual_spacer bottoming: enable_bottoming + force_sticky } = opts offset_top ?= 0 @@ -104,7 +105,7 @@ $.fn.stick_in_parent = (opts={}) -> tick() recalc() - return if height == parent_height + return if height == parent_height && force_sticky != true last_pos = undefined offset = offset_top