sticky-kit
sticky-kit copied to clipboard
Add force flag - in case of later change of height
I have the situation that the content fits at the time when the query is attached fits perfectly into the container. Therefore it is ignored ...
I have an accordion in my content. If I open it the height changes significantly and then the sticky element should kick in. Therefore I would suggest to add an force
flag. This flag should grant that the content could be attached anyway. The check should be:
if (!force || height === parent_height) {
return;
}