[haiku-commits] haiku: hrev48835 - src/apps/deskbar

  • From: jscipione@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 27 Feb 2015 02:15:26 +0100 (CET)

hrev48835 adds 1 changeset to branch 'master'
old head: e3468ef6007f1737c671a024422d53d72e7c3844
new head: dd251369362ef4c63e8acba1ceb9b50a28499858
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=dd251369362e+%5Ee3468ef6007f

----------------------------------------------------------------------------

dd251369362e: Deskbar: Fix an edge case sizing bug
  
  If you have no apps open because Tracker crashed and you opened a new team it
  would size the expando menu bar incorrectly in vertical mode.
  
  This fixes the problem.

                                     [ John Scipione <jscipione@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev48835
Commit:      dd251369362ef4c63e8acba1ceb9b50a28499858
URL:         http://cgit.haiku-os.org/haiku/commit/?id=dd251369362e
Author:      John Scipione <jscipione@xxxxxxxxx>
Date:        Fri Feb 27 01:12:12 2015 UTC

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/apps/deskbar/ExpandoMenuBar.cpp | 2 +-

----------------------------------------------------------------------------

diff --git a/src/apps/deskbar/ExpandoMenuBar.cpp 
b/src/apps/deskbar/ExpandoMenuBar.cpp
index ff0a4ac..3ad526c 100644
--- a/src/apps/deskbar/ExpandoMenuBar.cpp
+++ b/src/apps/deskbar/ExpandoMenuBar.cpp
@@ -616,7 +616,7 @@ TExpandoMenuBar::AddTeam(BList* team, BBitmap* icon, char* 
name,
 
        float itemWidth = -1.0f;
        if (fVertical)
-               itemWidth = Frame().Width();
+               itemWidth = fBarView->Bounds().Width();
        else {
                itemWidth = iconSize;
                if (!settings->hideLabels)


Other related posts:

  • » [haiku-commits] haiku: hrev48835 - src/apps/deskbar - jscipione