use 'el.getBoundingClientRect().height' instead of offsetHeight