change getBoundingClientRect to prevent chrome complaining about deprecated scrollTop