What is the best way to get element height:
var myElement = document.querySelector('.some-class');
var height = myElement.getBoundingClientRect().height;
or
var myElement = document.querySelector('.some-class');
var height = myElement.offsetHeight;