noeldelgado / gemini-scrollbar

:first_quarter_moon: Custom overlay-scrollbars with native scrolling mechanism for web applications
https://noeldelgado.github.io/gemini-scrollbar/
MIT License
429 stars 63 forks source link

ViewElement width should be calculated differently #27

Open ascariandrea opened 8 years ago

ascariandrea commented 8 years ago

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.

noeldelgado commented 8 years ago

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.

ascariandrea commented 8 years ago

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

neolectron commented 7 years ago

still not resolved.