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

Without scrollbar, div is stretched out #43

Closed
BabyDead opened this issue May 16, 2018 · 5 comments
Closed

Without scrollbar, div is stretched out #43

BabyDead opened this issue May 16, 2018 · 5 comments

Comments

@BabyDead
Copy link

So, I've noticed that when there's not enough content in a block to actually make it scrollable, the content is stretching on the width + 18px of the ss-content element.

It seems to work perfectly when there IS indeed a scrollbar, however.

I have no idea why it's caused as I can't really find any differences... But I hope this helps.

@diego-mathis
Copy link

Just force the scrollbar with CSS: overflow-y:scroll

@BabyDead
Copy link
Author

But I do not want the scrollbar when it's not nessecary

@diego-mathis
Copy link

Wouldnt that be the simplest way to fix that problem? The scrollbar is invisible, and it cannot be used - since there is no scrollable area.

@ReDreamport
Copy link

Just to be clear: add overflow-y: scroll to .ss-content?

@michaelspiss
Copy link
Contributor

michaelspiss commented Sep 23, 2018

Adding overflow-y: scroll; to .ss-content in the css fixes this problem.
I just created pull request #49 which does exactly that.

Please keep in mind that you will also need to merge #37, else the width will still be off by some px in some browsers.

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

4 participants