react-custom-scroll icon indicating copy to clipboard operation
react-custom-scroll copied to clipboard

Not working after using example code

Open JPStrydom opened this issue 6 years ago • 3 comments

I've followed all the steps in the README but I couldn't get it working. So I resorted to try using the example code found in ./example/firstComp.

I have all the files exactly as they are in the example, and I've added the <link rel="stylesheet" type="text/css" href="../node_modules/react-custom-scroll/dist/customScroll.css"> line to my index HTML file.

Other than that I essentially have a blank CRA project in which I'm only rendering the firstComp component in my index.js file - but my screen still looks like this -> scrollerror

Any ideas what I'm doing wrong?

JPStrydom avatar Jul 23 '18 12:07 JPStrydom

I'm just experiencing the same issue, I couldn't get it to work. Importing as stated in documentation does not work.

JavierLight avatar Nov 20 '18 08:11 JavierLight

Hi @JavierLight and @JPStrydom , Thanks for using this library! I'm unable to reproduce the issue -

It would be very helpful if you can create the case in CodeSandbox or similar and send me the URL Or, you can try and use chrome dev tools to inspect the space at the top and try to figure out where it is coming from Thanks!

rommguy avatar Nov 21 '18 06:11 rommguy

@rommguy i know the examples work with flexbox and a fixed height, but does it work with 100% height and flexbox ?

Basically i have a popup modal that is just width/height 100% absolute, at the body level. A bunch of nested flex elements then finally react-custom-scroll.

see this sample. sample if you changed it index.js line 32 to maybe 500px, it works. Right now it doesnt.

Is this a bug? something i setup wrong? something not supported ?

jwugit avatar Nov 27 '18 02:11 jwugit