DiskUsage: align tab focus mark with label.

Fixes #6905.
This commit is contained in:
Adrien Destugues 2014-12-03 08:39:33 +01:00
parent 555c1cbfd8
commit 5da82e3a10
1 changed files with 9 additions and 0 deletions

View File

@ -39,6 +39,7 @@ public:
float IconWidth() const;
virtual void DrawLabel(BView* owner, BRect frame);
virtual void DrawFocusMark(BView* owner, BRect frame);
private:
BBitmap* fIcon;
@ -95,6 +96,14 @@ VolumeTab::DrawLabel(BView* owner, BRect frame)
}
void
VolumeTab::DrawFocusMark(BView* owner, BRect frame)
{
frame.left += IconWidth();
BTab::DrawFocusMark(owner, frame);
}
VolumeTab::~VolumeTab()
{
delete fIcon;