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:
parent
c0be54904f
commit
2d27c2d003
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user