Fix repaint issues when resizing a window with centered content, for platforms with...