creativetimofficial / ct-light-bootstrap-dashboard-pro

14 stars 4 forks source link

Pro Version 2.0.1 issue perfect-scrollbar #56

Open surendrasoniblr opened 6 years ago

surendrasoniblr commented 6 years ago

perfect-scrollbar is working in old version of 1.4 but its not working in 2.0.1 Please fix this issue. I tried to fix but not able to fix it. Please help.

groovemen commented 6 years ago

Hello @surenslab, thank you for using our products, I check the light-bootstrap-dashboard.js file and saw that the perfectScrollbar() is initialized, also the perfectScrollbar works fine in the Live Preview. I will ask you to provide more details about this issue.

All the best, Stefan

surendrasoniblr commented 6 years ago

image

Are you Sure about it?

groovemen commented 6 years ago

Hello again,

I will give you the block of code that you need to check if your machine's operating system

(function() {
  isWindows = navigator.platform.indexOf('Win') > -1 ? true : false;

  if (isWindows) {
  // if we are on windows OS we activate the perfectScrollbar function
    $('.sidebar .sidebar-wrapper, .main-panel').perfectScrollbar();
    $('html').addClass('perfect-scrollbar-on');

  } else {
    $('html').addClass('perfect-scrollbar-off');
  }
})();

Best, Stefan

uzairsheikh079 commented 1 year ago

Hello Groovemen, I am facing the same issue. I dont understand that if I remove this code then my sosftware search function JS is not working and If I remain this code then mobile screen sidebar and other functionalities with setting option is not working?