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

Sticky header + sticky sidebar + footer #47

Open
zhil opened this issue Oct 24, 2019 · 3 comments
Open

Sticky header + sticky sidebar + footer #47

zhil opened this issue Oct 24, 2019 · 3 comments

Comments

@zhil
Copy link

zhil commented Oct 24, 2019

I have pretty complex structure on the website - Header (not sticky), large subheader (sticky), content col + sidebar (sticky), footer.

I almost did it, except footer is overlap sticky sidebar with "top: 100px !important" attribute, not sure how to fix it

I added sandbox for it
https://codesandbox.io/s/jcf-bug-sandbox-vl1vv

Would really appreciate, if somebody will give any suggestions regarding how can I fix this issue
image

@zhil
Copy link
Author

zhil commented Oct 24, 2019

bottomOffset should do the trick, but either I miss something, or it doesnt work

@zhil
Copy link
Author

zhil commented Oct 27, 2019

@gm0t @Scrum @jacobweber @pepijnolivier
I would appreciate any suggestions regarding how can I fix this bug

@Ariel-Rodriguez
Copy link

@zhil i was needing the same thing you were trying to achieve. But i couldn't make it work either.
I decided to start a library from scratch and provide a solution with most recent code and provide an architecture were it would be easy to contribute and bug fix.

https://github.com/Ariel-Rodriguez/react-hook-sticky

Hope this useful for more people.

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

2 participants