perfect scrollbar set maxScrollbarLength

2.7k Views Asked by At

I used this plugin https://github.com/noraesae/perfect-scrollbar and there is minScrollbarLength but I wana set maxScrollbarLength but I low in programing and i dont know where i can change this option so I ask for help.

my code in index

     <script>
          jQuery(document).ready(function ($) {
            "use strict";
            $('#Default').perfectScrollbar({
                suppressScrollY: true,
                useBothWheelAxes: true,
                minScrollbarLength: 300,
                //and here i wana set maxScrollbarLength
            });
            $( ".ps-scrollbar-x" ).append( "<p>Drag This</p>" );
          });
     </script>
1

There are 1 best solutions below

1
Gromo On

Perfect scrollbar does not support max-size as I know. You have to change plugin code or contact author and report this as a feature. Also you can try jQuery Scrollbar which supports it and has the same styles as perfect scrollbar.