1

I'm trying to get the absolute rendered height of an element in Google Chrome:

enter image description here

When I inspect the element, the height shows up as 38.4:

enter image description here

What's the deal, how can I get the real height value?

Matt
  • 3,305
  • 11
  • 54
  • 98
  • It's rounded to the nearest whole integer. See [MDN's documentation of clientHeight](https://developer.mozilla.org/en-US/docs/Web/API/Element/clientHeight). – Heretic Monkey Mar 01 '18 at 00:51

1 Answers1

0

Have you tried parsing it into float by using parseFloat(elementHeight); ?