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

Spacing is calculated incorrectly when the sticky element has side margins #49

Open
kevinthr opened this issue Jun 25, 2016 · 0 comments

Comments

@kevinthr
Copy link

Any time I put side margins on the sticky element, it gets placed wrong when it becomes sticky. If I give it a positive side margin, it gets stuck too far to the left; if I give it a negative side margin, it gets stuck too far to the right. Anyone else getting this behavior? I took a look at the library because I suspected that maybe it was using InnerWidth instead of OuterWidth to do calculations but no, it's using OuterWidth, so I'm not sure what's happening here.

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