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.
This commit is contained in:
Adrien Destugues 2020-02-06 22:36:40 +01:00
parent 145f127f3a
commit 31ff65f62f

View File

@ -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