Installer: make sure there is space for 5 lines of text in the status view
Fixes #17095 Change-Id: I53752d6ee60a913f230dc44eddac7f872db6c184 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5314 Tested-by: Commit checker robot <[email protected]> Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
b666bf3fd8
commit
6ee62ca6c6
@@ -180,11 +180,16 @@ InstallerWindow::InstallerWindow()
|
|||||||
|
|
||||||
BSize logoSize = logoView->MinSize();
|
BSize logoSize = logoView->MinSize();
|
||||||
logoView->SetExplicitMaxSize(logoSize);
|
logoView->SetExplicitMaxSize(logoSize);
|
||||||
fStatusView->SetExplicitMinSize(BSize(fStatusView->StringWidth("W") * 22,
|
|
||||||
logoSize.height));
|
|
||||||
|
|
||||||
// Explicitly create group view to set the background white in case
|
// Make sure we can display 5 lines of text of 22 about charactrs each in the status view
|
||||||
// height resizing is needed for the status view
|
font_height height;
|
||||||
|
fStatusView->GetFontHeight(&height);
|
||||||
|
float fontHeight = height.ascent + height.descent + height.leading;
|
||||||
|
fStatusView->SetExplicitMinSize(BSize(fStatusView->StringWidth("W") * 22,
|
||||||
|
fontHeight * 5 + 8));
|
||||||
|
|
||||||
|
// Create a group view with a white background since the logo and status text won't have the
|
||||||
|
// same height, this background will show in the remaining space
|
||||||
fLogoGroup = new BGroupView(B_HORIZONTAL, 10);
|
fLogoGroup = new BGroupView(B_HORIZONTAL, 10);
|
||||||
fLogoGroup->SetViewColor(255, 255, 255);
|
fLogoGroup->SetViewColor(255, 255, 255);
|
||||||
fLogoGroup->GroupLayout()->SetInsets(0, 0, 10, 0);
|
fLogoGroup->GroupLayout()->SetInsets(0, 0, 10, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user