From c383cd39f43c6ca022c709be3e1490734b3a36e9 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 1 Apr 2019 18:31:13 -0700 Subject: [PATCH] Fix text wrapping with giant error messages --- app/gui/NavigableMessageDialog.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/gui/NavigableMessageDialog.qml b/app/gui/NavigableMessageDialog.qml index d06826e7..40cfc050 100644 --- a/app/gui/NavigableMessageDialog.qml +++ b/app/gui/NavigableMessageDialog.qml @@ -35,11 +35,13 @@ NavigableDialog { id: dialogLabel text: dialogText + ((helpText && (standardButtons & Dialog.Help)) ? (helpTextSeparator + helpText) : "") - wrapMode: Text.WordWrap + wrapMode: Text.Wrap + elide: Label.ElideRight // Cap the width so the dialog doesn't grow horizontally forever. This // will cause word wrap to kick in. Layout.maximumWidth: 400 + Layout.maximumHeight: 400 Keys.onReturnPressed: { accept()