buzinas / simple-scrollbar

Very simple and lightweight vanilla javascript library for creating a custom scrollbar cross-browser.
MIT License
575 stars 159 forks source link

Change width in the css for the ss-content #16

Closed eL-Prova closed 6 years ago

eL-Prova commented 7 years ago

You have set the ss-content with right: -18px; Is it not smarter to set width the width + 18px; So remove the right and set the width to: calc(100% + 18px); Also set the padding smaller so the content which is wrapped is using his original width.

buzinas commented 6 years ago

The idea is to keep the container width untouched, that's why we use a negative right.