add resize calcul for left offset