Resizes canvas to fit inthe window better