inuyaksa / jquery.nicescroll

nicescroll plugin for jquery - scrollbars like iphone/ipad
https://nicescroll.areaaperta.com/
3.6k stars 1.67k forks source link

Scrolling issue with drop-downs #782

Open robertnicjoo opened 5 years ago

robertnicjoo commented 5 years ago

I have sidebar which contains several drop-down and when I open bottom drop-downs it cannot detect that height of sidebar has added so I have to scroll up and then down (mouse wheel) in order to see the rest of my sidebar.

Here is sample video of nicescroll behavior.

Code

$("#sidebar").niceScroll({styler:"fb",cursorcolor:"#4ECDC4", cursorwidth: '6', cursorborderradius: '10px', background: '#404040', spacebarenabled:false, cursorborder: ''});

Any idea?

sivendra143 commented 5 years ago

Yes, as it same problem, am facing now, can anyone help!

rejowanahmed commented 4 years ago

Same Issue Here. Do you know some other plugins which has no problems like this?

rejowanahmed commented 4 years ago

See the question below. There are two answers and both work for me. Basically, I have applied the second method(See the second answer) suggested there. Because, it works instantly and the first method doesn't seem to work instantly after the div has been resized.

https://stackoverflow.com/questions/11862656/jquery-nice-scroll-not-working/11876895

Probably this is the best solution.