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

Scroll flickering/jumping when I add margin/padding to content #243

Open
gabrielalg opened this issue May 22, 2022 · 1 comment
Open

Scroll flickering/jumping when I add margin/padding to content #243

gabrielalg opened this issue May 22, 2022 · 1 comment

Comments

@gabrielalg
Copy link

Hi!

I'm having a really tough time trying to figure out how to stop my component to flicker like this:

ezgif com-gif-maker

In my project, I need to add a margin or padding when the scroll is visible, here is an example:

empower2

But, when the scroll is about to appear, the margin style is added and the component height/width changes, which (I assume) is causing this issue. What is the correct approach to make this work properly?

This is the style I'm adding when the scrollY is visible:
.trackYVisible .ScrollbarsCustom-Wrapper { margin-right: 24px; }

Thank you!

@ronakrrb
Copy link

@gabrielalg I fixed it removing the margin right and also setting the inset to 0px for the scrollbar wrapper to maintain the padding of the container.

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