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

Fix affix sidebar flickering #1319

Closed
wants to merge 1 commit into from
Closed

Fix affix sidebar flickering #1319

wants to merge 1 commit into from

Conversation

imagentleman
Copy link

@imagentleman imagentleman commented Aug 15, 2017

When fixing an overflow issue on the sidebar with this PR #1274

A flickering issue was introduced that was pointed out in this comment by @xtuc (his last one on the thread):
#1274 (comment)

The issue can be fix by using a max-height instead of a bottom with value zero.

How it looks on production (https://babeljs.io/docs/core-packages/):
https://screencast-o-matic.com/watch/cbjor0ldMM

How it would look like with the fix:
https://screencast-o-matic.com/watch/cbjorTldM8

@babel-bot
Copy link
Contributor

babel-bot commented Aug 15, 2017

Deploy preview ready!

Built with commit 65e6f93

https://deploy-preview-1319--babel.netlify.com

@xtuc
Copy link
Member

xtuc commented Aug 16, 2017

Thanks for your first contribution 👍

Still have some issues on my side (sorry 😄 ):

screenshot from 2017-08-16 09-33-55

screenshot from 2017-08-16 09-34-09

I believe the sidebar will be fixed with #1042

@xtuc xtuc added the bug label Aug 16, 2017
@imagentleman
Copy link
Author

Oh great, if #1042 is going to fix the sidebar i see no point in this PR hehe (so, you can just close it).

But, for what is worth i updated it with a little fix for the other thing that i think you are pointing out (the sidebar overlapping the discussion). We just have to include it in the bottom calculation of the affix (not just include the footer), and since the discussion loads async, we can't just memoize it, but we can throttle it but an arbitrary big number.

There are all kinds of strange things happening with that bootstrap affix sidebar, like when you get to the community discussion, it disappears sometimes if the previous sidebar item had a lot of sub-items (because they get collapsed and the sidebar height changes). I guess, all the stuff in this pr could be only a band-aid fix in the meantime.

@existentialism
Copy link
Member

@imagentleman thanks again for the PR, we landed #1343 as a short term fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants