Use a helper for getBoundingClientRect, allow this helper to be overwritten