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

ViewElement width should be calculated differently #27

Open
ascariandrea opened this issue May 5, 2016 · 3 comments
Open

ViewElement width should be calculated differently #27

ascariandrea opened this issue May 5, 2016 · 3 comments

Comments

@ascariandrea
Copy link

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
Copy link
Owner

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
Copy link
Author

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

@neolectron
Copy link

still not resolved.

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

3 participants