[haiku-commits] haiku: hrev50960 - src/kits/tracker

  • From: humdingerb@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 19 Feb 2017 09:07:23 +0100 (CET)

hrev50960 adds 1 changeset to branch 'master'
old head: 2423ba84701f064cb78a40010113a8a45cc02a92
new head: d54cb434e0c6ebbe4bfddf88d028a560b364cdb3
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=d54cb434e0c6+%5E2423ba84701f

----------------------------------------------------------------------------

d54cb434e0c6: 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.

                                        [ Humdinger <humdingerb@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev50960
Commit:      d54cb434e0c6ebbe4bfddf88d028a560b364cdb3
URL:         http://cgit.haiku-os.org/haiku/commit/?id=d54cb434e0c6
Author:      Humdinger <humdingerb@xxxxxxxxx>
Date:        Fri Feb 17 07:02:17 2017 UTC

Ticket:      https://dev.haiku-os.org/ticket/13308

----------------------------------------------------------------------------

1 file changed, 3 insertions(+), 4 deletions(-)
src/kits/tracker/InfoWindow.cpp | 7 +++----

----------------------------------------------------------------------------

diff --git a/src/kits/tracker/InfoWindow.cpp b/src/kits/tracker/InfoWindow.cpp
index eb3bdad..f7a4372 100644
--- a/src/kits/tracker/InfoWindow.cpp
+++ b/src/kits/tracker/InfoWindow.cpp
@@ -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);


Other related posts:

  • » [haiku-commits] haiku: hrev50960 - src/kits/tracker - humdingerb