YvesCoding / vuescroll

A customizable scrollbar plugin based on vue.js for PC , mobile phone, touch screen, laptop.
https://nifty-shannon-7eab38.netlify.app/
MIT License
1.27k stars 111 forks source link

Need Help!! maxHeight not working #255

Closed nasirDoe closed 2 years ago

nasirDoe commented 3 years ago

i use this plugin on nuxt.js, any solution. the base component always height: 100%. Thank you

wangyi7099 commented 3 years ago

please provide the code

ckap commented 3 years ago

maxHeight is a property of scrollPanel. Make sure that you've formatted your ops correctly. Ex:

<vue-scroll
  :ops="{
    scrollPanel: {
      maxHeight: 10
    }
  }"
>
</vue-scroll>
nasirDoe commented 3 years ago

I wrote my code like below `<vue-scroll :ops="{ maxHeight: 10 }"

` because in plugin documentations like this, maybe you miss in documentation. But thanks for your answer, i appreciated it. i'll try soon miss-documentation