My div
contains dynamic text with a specified max-height
, potentially leading to some content not being visible. How can I determine if all the content is displayed after it's been rendered?
Therefore, my inquiry is:
In terms of best practice, should I use offsetHeight < scrollHeight
as a means to check if the entire contents of the div are visible based on its height?