xobotyi/react-scrollbars-custom

[v4] Missing wrapper element with display: inline-block

Closed this issue · 1 comments

Please correct me if I'm wrong but based on the official demo and my own example I see that there is a need for one more wrapper element with display: inline-block style. Without that missing element, content seems to not respect the padding-right style on the absolutely positioned parent element.

Here is my fixed example:
https://codesandbox.io/s/1wrx623273

Before fix (current state):
Screen Shot 2019-04-29 at 10 39 38

With additional wrapper:
Screen Shot 2019-04-29 at 10 40 06

This wrapper element might be a part of a library as it won't work correctly without it. Please tell me what do you think about that idea.

Fixed with v4.0.0-alpha.15