A better way to adjust the dialogs to fit their contents?