Comments (3)
from vue-material-dashboard.
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.
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)
- dispaly wrong when use a map package vue-amap,i don't know who's problem HOT 3
- sir i want to add sub menu to one of my menu. for example when i click on user profile menu there should open two other submenus. is this possbile if yes how. kinldy guide me i am new to vue.js HOT 3
- Material design styling not working properly HOT 1
- fixed position md-toolbar
- test issue HOT 1
- test issue HOT 1
- test issue HOT 1
- [Feature Request] test
- test HOT 1
- [Feature Request] test
- table header is not aligned with the other rows HOT 1
- Blank Page when build HOT 1
- [Bug] Blank Page when build HOT 1
- CUSTOMER SUPPORT NOT RESPONDING HOT 1
- [Bug] CUSTOMER SUPPORT NOT RESPONDING
- [Bug] The EditProfileForm.vue file is misspelled
- npm run build created empty page HOT 1
- Npm run build gives blank page HOT 1
- [Bug] Npm run build results in blank page HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-material-dashboard.