Fix progress bars staying at initial progress sometimes

In particular, when directly contained in a widget without auto-resize.