Skip to content

Feature Request: clientHeight, offsetHeight and scrollHeight #221

@amber-cd

Description

@amber-cd

We use this library extensively, and it is extremely useful, but it would be useful to be able to access both the height that a SizeMe-wrapped container takes up (its clientHeight and offsetHeight, depending on the inclusion of the scrollbar and border) and the size that the contents of the container take up (the scrollHeight). I think this can be accessed by the use of two separate SizeMes around a parent container set to represent the clientHeight and a child container styled so that its height matches the scrollHeight but that doesn't seem ideal for performance reasons.

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