Adjust editor to window size