measure tab width trough onMesaure method