Resize the content when the window is resized while the console is expanded.