update textwidth for auto word wrap