Otherwise the widget will never repaint despite the animation running. (cherry picked from commit 8925938a)