Closed singuyen closed 4 years ago
Yep, because by default it uses element.clientHeight
, which does not count any potentially collapsing margins and/or paddings
But you can provide getElementHeight
prop and define how exactly you want to get that height
Hi guys, just noticed it doesn't calculate if the container has h1, h2, h3 tag.