noeldelgado / gemini-scrollbar

:first_quarter_moon: Custom overlay-scrollbars with native scrolling mechanism for web applications

Home Page:https://noeldelgado.github.io/gemini-scrollbar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ViewElement width should be calculated differently

ascariandrea opened this issue · comments

My gm-scrollbar-container has padding, so the this._viewElement.style.width is wrongly calculated.
The padding of gm-scrollbar-container should be considered to set the _viewElement width.

Thanks Andrea, yeah, I am aware of this issue, it should be fixed to mitigate implementation's problems.

In the meantime, you could try adding an extra element to hold the padding and wrap its children.
http://requirebin.com/?gist=77d954f3b69ffa8ac04930d95975bf7e

I am not saying this is the way to go, but that can fix the problem right away.

Yeah, I used that approach :)
Are you planning to resolve this soon?

commented

still not resolved.