From 414b3c94594c24928f8f1559e5dc0757142fa5d3 Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Tue, 11 Aug 2009 23:52:10 +0000 Subject: [PATCH] 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 --- src/apps/cortex/RouteApp/StatusView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/cortex/RouteApp/StatusView.cpp b/src/apps/cortex/RouteApp/StatusView.cpp index 2990064c04..8a7a42e39a 100644 --- a/src/apps/cortex/RouteApp/StatusView.cpp +++ b/src/apps/cortex/RouteApp/StatusView.cpp @@ -302,7 +302,8 @@ StatusView::drawInto(BView *v, BRect updateRect) r.left += 10.0; font_height 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->DrawString(Text());