From 4fa250ba8dcf7143a7b69fec0b5098bc3bc97b86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 27 Feb 2004 22:49:59 +0000 Subject: [PATCH] Replaced lazy mode text positioning with real code. Turns out it didn't work with the menu in sticky mode (because of the triggers). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6787 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/diskprobe/ProbeView.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/apps/diskprobe/ProbeView.cpp b/src/apps/diskprobe/ProbeView.cpp index d195e6824e..858f9f48b4 100644 --- a/src/apps/diskprobe/ProbeView.cpp +++ b/src/apps/diskprobe/ProbeView.cpp @@ -792,9 +792,14 @@ TypeMenuItem::DrawContent() // draw the label BMenuItem::DrawContent(); + font_height fontHeight; + Menu()->GetFontHeight(&fontHeight); + // draw the type - BPoint point = Menu()->PenLocation(); + BPoint point = ContentLocation(); point.x = Frame().right - 4 - Menu()->StringWidth(fType.String()); + point.y += fontHeight.ascent; + Menu()->DrawString(fType.String(), point); }