malte-wessel / react-custom-scrollbars

React scrollbars component
http://malte-wessel.github.io/react-custom-scrollbars/
MIT License
3.2k stars 577 forks source link

Scrollbar is always hidden #204

Open renatobenks-zz opened 6 years ago

renatobenks-zz commented 6 years ago

It's not appearing my scrollbar

Here is my component:

getStyle() {
  const { width, height, horizontal } = this.props;
    return {
    width,
    height,
    overflow: 'auto',
    whiteSpace: horizontal ? 'nowrap' : 'auto',
  };
}

<Scrollbars style={this.getStyle()} {...props}>
  {children}
</Scrollbars>

And this is not happening because I'm with overflow or/and whiteSpace, cause without both, the issue keep.

kapture 2017-11-10 at 15 03 43

What could be?

pronebird commented 6 years ago

I have the same issue except I see system scrollbars. This component doesn't seem to work.