Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PerfectScrollbar elements are forced to be used #55

Open
tejasvih opened this issue May 20, 2020 · 0 comments
Open

PerfectScrollbar elements are forced to be used #55

tejasvih opened this issue May 20, 2020 · 0 comments

Comments

@tejasvih
Copy link

Using of elements for PerfectScrollbar is forced in paper-dashboard.js

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

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

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

In situations like where we do not want sidebar or sidebar-wrapper or main-panel, it throws error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant