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

Overlay vs block #30

Closed
fabiancook opened this issue Nov 21, 2018 · 4 comments
Closed

Overlay vs block #30

fabiancook opened this issue Nov 21, 2018 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@fabiancook
Copy link

Is it possible to have the scrollbars be an overlay on top of the contained content, rather than taking up space from the container?

This would be similar to how macOS handles scrollbars where the scrollbars are transparent (excluding the actual handle).

@xobotyi xobotyi added the question Further information is requested label Nov 22, 2018
@xobotyi xobotyi self-assigned this Nov 22, 2018
@xobotyi
Copy link
Owner

xobotyi commented Nov 22, 2018

Sure, it's very easy:

<Scrollbar wrapperProps = {{style: {margin: 0}}}/>

Almost every style is overridable.

@xobotyi xobotyi closed this as completed Nov 22, 2018
@fabiancook
Copy link
Author

Perfect, thanks

@thomasgassmann
Copy link

As of 2020, you might want to do it like this:

<Scrollbar wrapperProps = {{style: {right: 0}}}/>

@xobotyi
Copy link
Owner

xobotyi commented Nov 8, 2020

@thomasgassmann sadly but most companies still have 1% rule. Meaning that if 1% of autdience is using IE it should be supported.

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

No branches or pull requests

3 participants