content
content copied to clipboard
Include solution to checking if content is overflown in clientHeight page
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollHeight
What specific section or headline is this issue about?
Problems and Solutions
What information was incorrect, unhelpful, or incomplete?
N/A
What did you expect to see?
A solution to the problem: How to know if an element is overflown vertically/horizontally
Do you have any supporting links, references, or citations?
-
This answer points out one solution: https://stackoverflow.com/a/9541579/16071410.
-
A solution is also highlighted earlier in the page: https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollHeight#:~:text=If%20the%20element%27s%20content%20can%20fit%20without%20a%20need%20for%20vertical%20scrollbar%2C%20its%20scrollHeight%20is%20equal%20to%20clientHeight
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/web/api/element/scrollheight - MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollHeight
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/api/element/scrollheight/index.md
- Last commit: https://github.com/mdn/content/commit/58906e1e44f6b192e6993d30241403b8a149b7f7
- Document last modified: 2022-06-21T23:04:37.000Z