use getBoundingClientRect() to get real offsets

I'm not sure I edited the right files.