Ticket #13308: 0001-Layout-fixes-to-Tracker-s-Get-Info-window.patch

File 0001-Layout-fixes-to-Tracker-s-Get-Info-window.patch, 1.4 KB (added by humdinger, 3 years ago)

patch for GetInfo window layout

  • src/kits/tracker/InfoWindow.cpp

    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()  
    369369        "will use to find the window width");
    370370
    371371    // window height depends on file type
    372     int lines = 7;
    373     if (fModel->IsSymLink())
    374         lines++;
     372    int lines = 8;
    375373    if (fModel->IsExecutable())
    376         lines += 2;
     374        lines++;
    377375    float height = font->Size() * (lines * 2 + 1);
    378376
    379377    ResizeTo(width, height);
    AttributeView::AttributeView(BRect rect, Model* model)  
    912910                Bounds().Width() - 5, fTitleRect.bottom + (lineHeight * 8));
    913911            fPreferredAppMenu = new BMenuField(preferredAppRect, "", "",
    914912                new BPopUpMenu(""));
     913            currentFont.SetSize(currentFont.Size() + 2);
    915914            fDivider = currentFont.StringWidth(B_TRANSLATE("Opens with:"))
    916915                + 5;
    917916            fPreferredAppMenu->SetDivider(fDivider);