switch certain uses of getBoundingClientRect() to use offsetXYX instead, to defend against CSS transformations