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

Not binding events on height === parent_height #28

Open
nithiz opened this issue Feb 6, 2014 · 2 comments
Open

Not binding events on height === parent_height #28

nithiz opened this issue Feb 6, 2014 · 2 comments

Comments

@nithiz
Copy link

nithiz commented Feb 6, 2014

When the height of the sticky-element is as high as the parent at start, the events won't ever get binded thus making it impossible for stickykit to activate when the content changes or when the window resizes.

A simple fix is commenting the following on line 71:

/*
      if (height === parent_height) {
        return;
      }
*/

I don't know why this is even in the source code :)

@mrtuvn
Copy link

mrtuvn commented Jul 2, 2015

thank bro @nithiz your response help me alot

@azharisubroto
Copy link

we should put this solution into https://github.com/leafo/sticky-kit/wiki/Troubleshooting.

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

3 participants