Added getSize method for Modal.