Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sticky-kit.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ $.fn.stick_in_parent = (opts={}) ->
offset_top
spacer: manual_spacer
bottoming: enable_bottoming
force_sticky
} = opts

offset_top ?= 0
Expand Down Expand Up @@ -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
Expand Down