auto resize dialog to display full titles