The math here is pretty silly. I've commented on this before when Prasad submitted this code. You're adding the frame size and then subtracting it again. So really this.els.frame does not affect these calculations.