From 31ff65f62f05e898a571db37252c7cb160011324 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Thu, 6 Feb 2020 22:36:40 +0100 Subject: [PATCH] Installer: better computation for minimal window width The width of the status messages should not depend on the width of the logo. Reserve about 30 characters no matter which logo is used (this is slightly larger than it used to be). Fixes #15679. --- src/apps/installer/InstallerWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/installer/InstallerWindow.cpp b/src/apps/installer/InstallerWindow.cpp index f96e655dcd..ed8d9fdde9 100644 --- a/src/apps/installer/InstallerWindow.cpp +++ b/src/apps/installer/InstallerWindow.cpp @@ -179,7 +179,7 @@ InstallerWindow::InstallerWindow() BSize logoSize = logoView->MinSize(); logoView->SetExplicitMaxSize(logoSize); - fStatusView->SetExplicitMinSize(BSize(logoSize.width * 0.8, + fStatusView->SetExplicitMinSize(BSize(fStatusView->StringWidth("W") * 30, logoSize.height)); // Explicitly create group view to set the background white in case