update getBoundingClientRect to make behavior consistent between Firefox and the rest.