Style fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42270 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -37,12 +37,14 @@ BFileControl::BFileControl(BRect rect, const char* name, const char* label,
|
||||
// determine font height
|
||||
font_height fontHeight;
|
||||
GetFontHeight(&fontHeight);
|
||||
float itemHeight = (int32)(fontHeight.ascent + fontHeight.descent + fontHeight.leading) + 13;
|
||||
float itemHeight = (int32)(fontHeight.ascent + fontHeight.descent
|
||||
+ fontHeight.leading) + 13;
|
||||
BString selectString = B_TRANSLATE("Select" B_UTF8_ELLIPSIS);
|
||||
float labelWidth = StringWidth(selectString) + 20;
|
||||
rect = Bounds();
|
||||
rect.right -= labelWidth;
|
||||
rect.top = 4; rect.bottom = itemHeight + 2;
|
||||
rect.top = 4;
|
||||
rect.bottom = itemHeight + 2;
|
||||
fText = new BTextControl(rect,"file_path", label, pathOfFile, NULL);
|
||||
if (label)
|
||||
fText->SetDivider(fText->StringWidth(label) + 6);
|
||||
@@ -184,4 +186,3 @@ BMailFileConfigView::Archive(BMessage *into, bool /*deep*/) const
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user