[haiku-bugs] Re: [Haiku] #16725: WebPositive: Wrong status bar size while showing loading bar

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Fri, 17 Dec 2021 15:38:01 -0000

#16725: WebPositive: Wrong status bar size while showing loading bar
---------------------------------------+-------------------------
  Reporter:  nephele                   |      Owner:  pulkomandy
      Type:  bug                       |     Status:  new
  Priority:  normal                    |  Milestone:  Unscheduled
 Component:  Applications/WebPositive  |    Version:  R1/beta2
Resolution:                            |   Keywords:
Blocked By:                            |   Blocking:
  Platform:  All                       |
---------------------------------------+-------------------------
Comment (by nephele):

 Here is what i came up with:
 {{{
 --- a/src/apps/webpositive/BrowserWindow.cpp
 +++ b/src/apps/webpositive/BrowserWindow.cpp
 @@ -547,7 +547,7 @@ BrowserWindow::BrowserWindow(BRect frame,
 SettingsMessage* appSettings,
         fLoadingProgressBar = new BStatusBar("progress");
         fLoadingProgressBar->SetMaxValue(100);
         fLoadingProgressBar->Hide();
 -       fLoadingProgressBar->SetBarHeight(12);
 +       fLoadingProgressBar->SetBarHeight(font.Size() + 7.0f);

         const float kInsetSpacing = 3;
         const float kElementSpacing = 5;
 }}}


 The +7.0F seems a bit random, in my font size this looks correct (22 set
 as plain size), but with a different font size it fails again. Is there a
 way to figure out what the correct size has to be?
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16725#comment:1>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: