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
This commit is contained in:
Axel Dörfler
2004-02-27 22:49:59 +00:00
parent a7d7e9c80f
commit 4fa250ba8d
+6 -1
View File
@@ -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);
}