Skip to content

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

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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