Corrects x and y offset due to border width.