gemini-scrollbar icon indicating copy to clipboard operation
gemini-scrollbar copied to clipboard

ViewElement width should be calculated differently

Open ascariandrea opened this issue 9 years ago • 3 comments
trafficstars

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.

ascariandrea avatar May 05 '16 14:05 ascariandrea

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.

noeldelgado avatar May 05 '16 18:05 noeldelgado

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

ascariandrea avatar May 06 '16 07:05 ascariandrea

still not resolved.

neolectron avatar Aug 24 '17 10:08 neolectron