Skip to content

parentNode dimensions defining bug #6

@iamkyrylo

Description

@iamkyrylo

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions