From 9df45d896fb4801da77574fbc09c24f237330a45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=90=D0=BB=D0=B5=CC=88?= =?UTF-8?q?=D1=88=D0=B8=D0=BD?= Date: Sat, 2 Dec 2017 00:13:21 +0300 Subject: [PATCH] Fix. Element is not moving, when it gets free space to move. When StickyKit was initialized for element at a moment, where parent's height was equal to element's height, following issues occurs: 1. When element gets free space (e.g. by page recomposition), it will not move, because event listeners was not attached; 2. Triggering 'sticky_kit:detach' has no effect. --- sticky-kit.coffee | 1 - 1 file changed, 1 deletion(-) diff --git a/sticky-kit.coffee b/sticky-kit.coffee index 5eae00f..8465947 100644 --- a/sticky-kit.coffee +++ b/sticky-kit.coffee @@ -109,7 +109,6 @@ $.fn.stick_in_parent = (opts={}) -> tick() recalc() - return if height == parent_height last_pos = undefined offset = offset_top