From c90dd0d6dc7f143bf8abacc43b275670ef72ccd6 Mon Sep 17 00:00:00 2001
From: Humdinger <humdingerb@gmail.com>
Date: Fri, 17 Feb 2017 08:02:17 +0100
Subject: [PATCH] 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:396. Increase font size by 2 again.
---
src/kits/tracker/InfoWindow.cpp | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/kits/tracker/InfoWindow.cpp b/src/kits/tracker/InfoWindow.cpp
index eb3bdad..f7a4372 100644
a
|
b
|
BInfoWindow::Show()
|
369 | 369 | "will use to find the window width"); |
370 | 370 | |
371 | 371 | // window height depends on file type |
372 | | int lines = 7; |
373 | | if (fModel->IsSymLink()) |
374 | | lines++; |
| 372 | int lines = 8; |
375 | 373 | if (fModel->IsExecutable()) |
376 | | lines += 2; |
| 374 | lines++; |
377 | 375 | float height = font->Size() * (lines * 2 + 1); |
378 | 376 | |
379 | 377 | ResizeTo(width, height); |
… |
… |
AttributeView::AttributeView(BRect rect, Model* model)
|
912 | 910 | Bounds().Width() - 5, fTitleRect.bottom + (lineHeight * 8)); |
913 | 911 | fPreferredAppMenu = new BMenuField(preferredAppRect, "", "", |
914 | 912 | new BPopUpMenu("")); |
| 913 | currentFont.SetSize(currentFont.Size() + 2); |
915 | 914 | fDivider = currentFont.StringWidth(B_TRANSLATE("Opens with:")) |
916 | 915 | + 5; |
917 | 916 | fPreferredAppMenu->SetDivider(fDivider); |