Skip to content

Do not throw error when width or height is zero #52

@hypnoce

Description

@hypnoce

In case the innerWidth or height of an element is zero, the lib throws an error :

throw new Error('Set a static height and width on the target element ' + el.outerHTML +

I think we can add an option to gracefully fail and ignore those edge cases.
WDYT ?

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