Vertically align the text label in the StatusView of Cortex;
Fixes ticket #3032. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32266 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -302,7 +302,8 @@ StatusView::drawInto(BView *v, BRect updateRect)
|
|||||||
r.left += 10.0;
|
r.left += 10.0;
|
||||||
font_height fh;
|
font_height fh;
|
||||||
be_plain_font->GetHeight(&fh);
|
be_plain_font->GetHeight(&fh);
|
||||||
r.bottom = Bounds().bottom - fh.descent - 1.0;
|
r.bottom = Bounds().bottom - fh.descent
|
||||||
|
- (Bounds().Height() - fh.ascent - fh.descent) / 2;
|
||||||
v->MovePenTo(r.LeftBottom());
|
v->MovePenTo(r.LeftBottom());
|
||||||
v->DrawString(Text());
|
v->DrawString(Text());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user