Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: clientHeight, offsetHeight and scrollHeight #221

Open
amber-cd opened this issue Apr 5, 2022 · 0 comments
Open

Feature Request: clientHeight, offsetHeight and scrollHeight #221

amber-cd opened this issue Apr 5, 2022 · 0 comments

Comments

@amber-cd
Copy link

amber-cd commented Apr 5, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant