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.
This commit is contained in:
John Scipione
2015-02-26 20:12:12 -05:00
parent e3468ef600
commit dd25136936
+1 -1
View File
@@ -616,7 +616,7 @@ TExpandoMenuBar::AddTeam(BList* team, BBitmap* icon, char* name,
float itemWidth = -1.0f; float itemWidth = -1.0f;
if (fVertical) if (fVertical)
itemWidth = Frame().Width(); itemWidth = fBarView->Bounds().Width();
else { else {
itemWidth = iconSize; itemWidth = iconSize;
if (!settings->hideLabels) if (!settings->hideLabels)