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:
@@ -792,9 +792,14 @@ TypeMenuItem::DrawContent()
|
|||||||
// draw the label
|
// draw the label
|
||||||
BMenuItem::DrawContent();
|
BMenuItem::DrawContent();
|
||||||
|
|
||||||
|
font_height fontHeight;
|
||||||
|
Menu()->GetFontHeight(&fontHeight);
|
||||||
|
|
||||||
// draw the type
|
// draw the type
|
||||||
BPoint point = Menu()->PenLocation();
|
BPoint point = ContentLocation();
|
||||||
point.x = Frame().right - 4 - Menu()->StringWidth(fType.String());
|
point.x = Frame().right - 4 - Menu()->StringWidth(fType.String());
|
||||||
|
point.y += fontHeight.ascent;
|
||||||
|
|
||||||
Menu()->DrawString(fType.String(), point);
|
Menu()->DrawString(fType.String(), point);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user