From 1323d8f478b420fc90d0a019c8bed89014d2bba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= Date: Sun, 2 Apr 2017 12:42:53 +0300 Subject: [PATCH] UI|Home: Size of the package info dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the wider layout only if the package description isn’t short. --- doomsday/apps/client/src/ui/dialogs/packageinfodialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doomsday/apps/client/src/ui/dialogs/packageinfodialog.cpp b/doomsday/apps/client/src/ui/dialogs/packageinfodialog.cpp index 5312a28f1a..e01b7fbbf0 100644 --- a/doomsday/apps/client/src/ui/dialogs/packageinfodialog.cpp +++ b/doomsday/apps/client/src/ui/dialogs/packageinfodialog.cpp @@ -503,7 +503,8 @@ void PackageInfoDialog::prepare() // Monospace text implies that there is an DOS-style readme text // file included in the notes. - bool const useWideLayout = d->description->text().contains(_E(m)); + bool const useWideLayout = d->description->text().contains(_E(m)) && + d->description->text().size() > 200; // reasonably long? // Update the width of the dialog. Don't let it get wider than the window. d->descriptionWidth->setSource(OperatorRule::minimum(