Skip to content

Does not work with SVG elements #21

@mdekrey

Description

@mdekrey

offsetHeight/offsetWidth do not work with elements often in the DOM that are not actually HTML Elements, for example, SVG elements.

I'd recommend using clientHeight/clientWidth when the offset versions are undefined, but it could be considered a breaking change.

Another possibility would be to allow the passing of a callback to override getSize.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions