Skip to content

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

Description

@leomayer

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions