Deskbar: Fix bug where items are sometimes wrong size

in vertical mode because the menu's MaxContentWidth is too small.

Fixes #13715
This commit is contained in:
John Scipione 2017-11-05 20:51:35 -08:00
parent c0be54904f
commit 2d27c2d003

View File

@ -469,9 +469,10 @@ TExpandoMenuBar::BuildItems()
desk_settings* settings = static_cast<TBarApp*>(be_app)->Settings();
float itemWidth = -1.0f;
if (fVertical)
if (fVertical) {
itemWidth = Frame().Width();
else {
SetMaxContentWidth(itemWidth);
} else {
itemWidth = iconSize;
if (!settings->hideLabels)
itemWidth += gMinimumWindowWidth - kMinimumIconSize;