Deskbar: Fix build after merge.
This commit is contained in:
parent
15eb397e32
commit
0c9e6791d8
@ -1254,7 +1254,7 @@ TBarView::TeamMenuItemHeight() const
|
||||
if (hideLabels && iconSize > B_MINI_ICON) {
|
||||
// height is determined based solely on icon size
|
||||
return iconSizePadded;
|
||||
} else if (!fVertical || fVertical && iconSize <= B_LARGE_ICON) {
|
||||
} else if (!fVertical || (fVertical && iconSize <= B_LARGE_ICON)) {
|
||||
// horizontal or vertical with label on same row as icon:
|
||||
// height based on icon size or font size, whichever is bigger
|
||||
return std::max(iconSizePadded, labelHeight);
|
||||
|
@ -195,7 +195,7 @@ TTimeView::GetPreferredSize(float* width, float* height)
|
||||
GetFontHeight(&fontHeight);
|
||||
fHeight = fontHeight.ascent + fontHeight.descent;
|
||||
|
||||
if (Vertical()) {
|
||||
if (fOrientation) {
|
||||
float appWidth = static_cast<TBarApp*>(be_app)->Settings()->width;
|
||||
*width = fMaxWidth
|
||||
= std::min(appWidth - (kDragRegionWidth + kHMargin) * 2, timeWidth);
|
||||
|
Loading…
x
Reference in New Issue
Block a user