sticky-kit icon indicating copy to clipboard operation
sticky-kit copied to clipboard

Add force flag - in case of later change of height

Open leomayer opened this issue 5 years ago • 0 comments

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;
      }

leomayer avatar Aug 30 '19 10:08 leomayer