Merge "Fix for #12945: ProgressBar.setMax() will always redraw."