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

Classnames don't get added to the elements #11

Closed
karendelakaren opened this issue Aug 17, 2015 · 1 comment
Closed

Classnames don't get added to the elements #11

karendelakaren opened this issue Aug 17, 2015 · 1 comment
Labels

Comments

@karendelakaren
Copy link

This part seems to be breaking the code for me, it won't add the class names to the elements

addClass(this._viewElement.className, [CLASSNAMES.view]);
addClass(this._scrollbarVerticalElement.className, [CLASSNAMES.verticalScrollbar]);
addClass(this._scrollbarHorizontalElement.className, [CLASSNAMES.horizontalScrollbar]);
addClass(this._thumbVerticalElement.className, [CLASSNAMES.thumb]);
addClass(this._thumbHorizontalElement.className, [CLASSNAMES.thumb]);

The addClass function doesn't accept a string with spaces ('gm-scrollbar -vertical' and 'gm-scrollbar -horizontal') and it also seems to want the element parameter without .className

@noeldelgado
Copy link
Owner

Thank you @karendelakaren, fixed in 1.2.9.

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

No branches or pull requests

2 participants