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

parentNode dimensions defining bug #6

Closed
iamkyrylo opened this issue Jul 3, 2019 · 0 comments
Closed

parentNode dimensions defining bug #6

iamkyrylo opened this issue Jul 3, 2019 · 0 comments

Comments

@iamkyrylo
Copy link

I'm a little confused, but as i see offsetHeight/offsetWidth of parentNode always returns rounded values.In my case i'm getting 233 instead of 232.5 of parent height and as a result grid horizontal scroll is overlapping the parent node.I have tested it with getBoundingClientRect and got correct dimensions of parentNode.Could you fix that?

code example:
const height = this._parentNode.getBoundingClientRect().height || 0;
const width = this._parentNode.getBoundingClientRect().width || 0;

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

1 participant