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:
parent
2423ba8470
commit
d54cb434e0
@ -369,11 +369,9 @@ BInfoWindow::Show()
|
|||||||
"will use to find the window width");
|
"will use to find the window width");
|
||||||
|
|
||||||
// window height depends on file type
|
// window height depends on file type
|
||||||
int lines = 7;
|
int lines = 8;
|
||||||
if (fModel->IsSymLink())
|
|
||||||
lines++;
|
|
||||||
if (fModel->IsExecutable())
|
if (fModel->IsExecutable())
|
||||||
lines += 2;
|
lines++;
|
||||||
float height = font->Size() * (lines * 2 + 1);
|
float height = font->Size() * (lines * 2 + 1);
|
||||||
|
|
||||||
ResizeTo(width, height);
|
ResizeTo(width, height);
|
||||||
@ -912,6 +910,7 @@ AttributeView::AttributeView(BRect rect, Model* model)
|
|||||||
Bounds().Width() - 5, fTitleRect.bottom + (lineHeight * 8));
|
Bounds().Width() - 5, fTitleRect.bottom + (lineHeight * 8));
|
||||||
fPreferredAppMenu = new BMenuField(preferredAppRect, "", "",
|
fPreferredAppMenu = new BMenuField(preferredAppRect, "", "",
|
||||||
new BPopUpMenu(""));
|
new BPopUpMenu(""));
|
||||||
|
currentFont.SetSize(currentFont.Size() + 2);
|
||||||
fDivider = currentFont.StringWidth(B_TRANSLATE("Opens with:"))
|
fDivider = currentFont.StringWidth(B_TRANSLATE("Opens with:"))
|
||||||
+ 5;
|
+ 5;
|
||||||
fPreferredAppMenu->SetDivider(fDivider);
|
fPreferredAppMenu->SetDivider(fDivider);
|
||||||
|
Loading…
Reference in New Issue
Block a user