Skip to content

React size me parent height collapsed when rendering with placeholder #227

@nohren

Description

@nohren

With placeholder, and with no explicit ancestor height, and with height relying on the dimensions of the child component, why is height settling at 0?

Of note, without placeholder height comes in correct, and with placeholder and display: "table" height also comes in correct.

https://codesandbox.io/s/modest-sid-jiisp9?file=/src/App.js

Ok, I see that changing height from size.height to "100%" fixes the issue. I see the placeholder is doing this in the code. Maybe we aren't supposed to specify the height from react-sizeme into the height of the container div?

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