WebPositive: fix loading bar height

Change-Id: Ic1e9c1c64b8bd00efadd6e2ea9f0c686e8b1141c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4823
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
Reviewed-by: Kacper Kasper <[email protected]>
This commit is contained in:
Pascal Abresch
2021-12-27 16:01:57 +00:00
committed by Kacper Kasper
parent 235aa994d7
commit 3604e6c384
+3 -1
View File
@@ -547,7 +547,9 @@ BrowserWindow::BrowserWindow(BRect frame, SettingsMessage* appSettings,
fLoadingProgressBar = new BStatusBar("progress"); fLoadingProgressBar = new BStatusBar("progress");
fLoadingProgressBar->SetMaxValue(100); fLoadingProgressBar->SetMaxValue(100);
fLoadingProgressBar->Hide(); fLoadingProgressBar->Hide();
fLoadingProgressBar->SetBarHeight(12); font_height height;
font.GetHeight(&height);
fLoadingProgressBar->SetBarHeight(height.ascent + height.descent);
const float kInsetSpacing = 3; const float kInsetSpacing = 3;
const float kElementSpacing = 5; const float kElementSpacing = 5;