perfect-scrollbar icon indicating copy to clipboard operation
perfect-scrollbar copied to clipboard

Feature Request: minRailLength

Open pepijnolivier opened this issue 5 years ago • 1 comments

Hi,

First of all, thanks for this library, it really is close to being perfect! This is related to mdbootstrap/perfect-scrollbar#65 and mdbootstrap/Tailwind-Elements#848.

I would like to request a configurable option minRailLength. Please consider we are using perfect-scrollbar in potentially really large lists. Currently, the scrollbar 'rail' is really small in these lists. I would like to be able to provide minRailLength: 100 to make the rail minimum 100px high.

This currently doesn't seem to be possible. I have provided an example jsfiddle. I hope this illustrates the problem.

Real world example (seeded with dummy data): LeadManager


  • [x] Check FAQ and Caveats
  • [x] Search if there's already one reported in Issues
  • [x] Prepare a JSFiddle reproducing the issue
  • [x] Provide a page or source code where the issue can be checked

pepijnolivier avatar Feb 05 '20 13:02 pepijnolivier

On quick glance it seems like maybe we can add this logic here: https://github.com/mdbootstrap/perfect-scrollbar/blob/master/src/update-geometry.js#L56

@mattonit I saw you updated the logic there a few weeks ago. Can you confirm this is where the code would need an update and would you accept a PR for it ?

Thanks!

pepijnolivier avatar Feb 06 '20 18:02 pepijnolivier