GithubHelp home page GithubHelp logo

Comments (3)

dacercoolex avatar dacercoolex commented on May 28, 2024

image

from vue-material-dashboard.

dacercoolex avatar dacercoolex commented on May 28, 2024

I've done a hack so the Perfect Scrollbar works.

Turns out that there's a condition in the mounted method of file:

src/pages/Dashboard/Layout/DashboardLayout.vue

This condition check if the OS is Windows, if it is then the Perfect Scrollbar is activated, if not then it won't. In my case I'm using Linux, that's why it didn't work.

So, to fix it, I've removed the condition so the Perfect Scrollbar gets activated no matter which OS is being used. The code was rewritten as follows:

mounted() {
    let docClasses = document.body.classList;
    initScrollbar("sidebar");
    initScrollbar("sidebar-wrapper");
    initScrollbar("main-panel");

    docClasses.add("perfect-scrollbar-on");
  }

Please, let me know if there's a better way to it and the reason why the perfect bar is active only in Windows.

Thanks in advance.

from vue-material-dashboard.

dragosct avatar dragosct commented on May 28, 2024

Hi, @dacercoolex! Thank you for using our products and for the solution. We will check if another option it's available, and we will integrate into the next update. Please for the future issues use the right repo, because this is for the free product and you have the PRO one. Thank you for your understanding!

Regards,
Dragos

from vue-material-dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.