How to adjust the size of the drawing area