switched scrollHeight to offsetHeight
scrollHeight switched to offsetHeight