From dd251369362ef4c63e8acba1ceb9b50a28499858 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Thu, 26 Feb 2015 20:12:12 -0500 Subject: [PATCH] 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. --- src/apps/deskbar/ExpandoMenuBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/deskbar/ExpandoMenuBar.cpp b/src/apps/deskbar/ExpandoMenuBar.cpp index ff0a4accb8..3ad526c00d 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)