Changed height of dialog calculation