diff --git a/src/kits/interface/StringItem.cpp b/src/kits/interface/StringItem.cpp index bf3eb5f9f49..e4ec0af180b 100644 --- a/src/kits/interface/StringItem.cpp +++ b/src/kits/interface/StringItem.cpp @@ -14,6 +14,7 @@ #include #include +#include #include #include @@ -85,7 +86,8 @@ BStringItem::DrawItem(BView *owner, BRect frame, bool complete) owner->FillRect(frame); } - owner->MovePenTo(frame.left + 4, frame.top + fBaselineOffset); + owner->MovePenTo(frame.left + be_control_look->DefaultLabelSpacing(), + frame.top + fBaselineOffset); if (!IsEnabled()) { rgb_color textColor = ui_color(B_LIST_ITEM_TEXT_COLOR); @@ -128,8 +130,10 @@ BStringItem::Text() const void BStringItem::Update(BView *owner, const BFont *font) { - if (fText) - SetWidth(font->StringWidth(fText)); + if (fText) { + SetWidth(font->StringWidth(fText) + + be_control_look->DefaultLabelSpacing()); + } font_height fheight; font->GetHeight(&fheight);