Changed from offsetHeight to scrollHeight