Called when the window is resized. The new size is paseed to the method. (The size values are for the entire window, not just the client area.)
Resets the scrollbars and redraws the buffer.