* centers the text for the settings list item as done with BStringItem
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29015 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3c885c3390
commit
0cfe9ac0f7
@ -364,7 +364,9 @@ SettingsItem::DrawItem(BView *owner, BRect rect, bool drawEverything)
|
||||
else
|
||||
owner->SetHighColor(kBlack);
|
||||
|
||||
owner->MovePenTo(rect.left + 4, rect.bottom - 2);
|
||||
font_height fheight;
|
||||
owner->GetFontHeight(&fheight);
|
||||
owner->MovePenTo(rect.left + 4, rect.top + fheight.ascent + 2 + floorf(fheight.leading / 2));
|
||||
|
||||
owner->DrawString(Text());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user