progressbar: add automatic full-width mode
Fixed a bug with autowidth on progress bars.