Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add force flag - in case of later change of height #270

Open
leomayer opened this issue Aug 30, 2019 · 0 comments
Open

Add force flag - in case of later change of height #270

leomayer opened this issue Aug 30, 2019 · 0 comments

Comments

@leomayer
Copy link

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;
      }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant