Layout fixes to Tracker's Get Info window

This corrects hrev50847. Turns out we need 8 lines for normal
files and symlinks, not 7. Fixes #13308.

The "Opens with:" label used the decreased font size set in
src/kits/tracker/InfoWindow.cpp:894. Increase font size by 2 again
for the label.
This commit is contained in:
Humdinger 2017-02-17 08:02:17 +01:00
parent 2423ba8470
commit d54cb434e0

View File

@ -369,11 +369,9 @@ BInfoWindow::Show()
"will use to find the window width");
// window height depends on file type
int lines = 7;
if (fModel->IsSymLink())
lines++;
int lines = 8;
if (fModel->IsExecutable())
lines += 2;
lines++;
float height = font->Size() * (lines * 2 + 1);
ResizeTo(width, height);
@ -912,6 +910,7 @@ AttributeView::AttributeView(BRect rect, Model* model)
Bounds().Width() - 5, fTitleRect.bottom + (lineHeight * 8));
fPreferredAppMenu = new BMenuField(preferredAppRect, "", "",
new BPopUpMenu(""));
currentFont.SetSize(currentFont.Size() + 2);
fDivider = currentFont.StringWidth(B_TRANSLATE("Opens with:"))
+ 5;
fPreferredAppMenu->SetDivider(fDivider);