Skip to content

Breaks on % width #11

Open
Open
@tgrrr

Description

@tgrrr

Hi,

This follows the exact example: https://github.com/rehooks/component-size/blob/master/example.js exactly, and it breaks when there's a 100% height, (as per the example) or 100vh . Works if we set an exact height with px or em.

I understand it can be wrapped with a div. However, 100vh sets the height to 331px.

Using the example in the readme results in a 16x16 image.

https://codesandbox.io/s/ookwxx927y

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions