3

I'm using perfect-scrollbar to customise scrollbar in my application . Now i have a situation where I wish to have a height of the scrollable section defined in terms of percentage . I tried to set the height to percentage but its not working .

Here is the sample

<style>
  .contentHolderSearch{ 
    position:relative; 
    margin:0px auto; 
    padding:0px; height:20%; 
    overflow: hidden; 
  }
</style>
<script>
  jQuery(document).ready(function ($) {
  "use strict";
    $('#movieScroll').perfectScrollbar();
  });
</script>
<div id="peopleScroll" class="contentHolderSearch">
  ----------some content----------------
</div>

Can anyone help?

Priyanga
  • 143
  • 1
  • 3
  • 16
Mridul Raj
  • 1,001
  • 4
  • 19
  • 46

1 Answers1

-1

Perfect scrollbar supports dynamic height as I can see it in example. Maybe you should change $('#movieScroll').perfectScrollbar(); to $('#peopleScroll').perfectScrollbar(); ?

Gromo
  • 1,609
  • 1
  • 13
  • 14