Update dialog size.