DiskUsage: Style fixes
This commit is contained in:
@@ -155,7 +155,6 @@ ControlsView::VolumeTabView::TabFrame(int32 index) const
|
||||
float x = 0.0f;
|
||||
float width = 0.0f;
|
||||
float minStringWidth = StringWidth("Haiku");
|
||||
|
||||
int countTabs = CountTabs();
|
||||
|
||||
// calculate the total width if no truncation is made at all
|
||||
@@ -167,9 +166,9 @@ ControlsView::VolumeTabView::TabFrame(int32 index) const
|
||||
float tabLabelWidth = StringWidth(TabAt(i)->Label());
|
||||
if (tabLabelWidth < minStringWidth)
|
||||
tabLabelWidth = minStringWidth;
|
||||
|
||||
float tabWidth = tabLabelWidth + 3.0f * kSmallHMargin
|
||||
+ ((VolumeTab*)TabAt(i))->IconWidth();
|
||||
|
||||
margins[i] = tabWidth - averageWidth;
|
||||
width += tabWidth;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user