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

Track with padding issue #233

Closed
omzy opened this issue Oct 30, 2018 · 1 comment
Closed

Track with padding issue #233

omzy opened this issue Oct 30, 2018 · 1 comment
Labels

Comments

@omzy
Copy link

omzy commented Oct 30, 2018

I want my track to appear with some "padding" above and below, for example:

image

To achieve this affect I apply the following CSS overrides:

.simplebar-track.vertical {
    top: 10px;
    bottom: 10px;
    right: 7px;
    width: 8px;
    background-color: #ccc;
}

.simplebar-track.vertical .simplebar-scrollbar {
    width: 100%;
    right: 0;
}

.simplebar-track.vertical .simplebar-scrollbar::before {
    border-radius: 0;
    background-color: #bc9bd0;
    opacity: 1;
    top: 0;
    bottom: 0;
}

This works fine except for one minor problem. When I scroll down to the bottom, there is a small gap at the end of track.

image

I beleive the size of this gap is the total amount of padding applied above and below the track, i.e. 20px.

I am using version 3.0.0-beta.5

@Grsmto
Copy link
Owner

Grsmto commented Nov 2, 2018

Hey,
I took a look at that and it's actually a bug. Working on a fix soon.

@Grsmto Grsmto closed this as completed in c9b622a Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants