Allow resizing of the rectangle