[haiku-commits] Change in haiku[master]: Tracker: fix count view border broblem

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 26 Jul 2020 02:49:39 +0000

From X512 <danger_mail@xxxxxxx>:

X512 has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/3093 ;)


Change subject: Tracker: fix count view border broblem
......................................................................

Tracker: fix count view border broblem

Fixes #16439.

Change-Id: If936517a0ecfaba994f5d48fcc2fd159cb8ea11f
---
M src/kits/tracker/ContainerWindow.cpp
1 file changed, 7 insertions(+), 2 deletions(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/93/3093/1

diff --git a/src/kits/tracker/ContainerWindow.cpp 
b/src/kits/tracker/ContainerWindow.cpp
index ac57bad..05ceb0a 100644
--- a/src/kits/tracker/ContainerWindow.cpp
+++ b/src/kits/tracker/ContainerWindow.cpp
@@ -1070,8 +1070,13 @@
                        forFilePanel ? 0 : -1);
                fCountContainer->GroupLayout()->AddView(hScrollBarContainer);

-               fPoseView->CountView()->SetExplicitMinSize(
-                       fPoseView->HScrollBar()->MinSize());
+               BSize size = fPoseView->HScrollBar()->MinSize();
+               if (forFilePanel) {
+                       // Count view height is 1px smaller than scroll bar 
because it have
+                       // no upper border.
+                       size.height -= 1;
+               }
+               fPoseView->CountView()->SetExplicitMinSize(size);
        }
 }


--
To view, visit https://review.haiku-os.org/c/haiku/+/3093
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: If936517a0ecfaba994f5d48fcc2fd159cb8ea11f
Gerrit-Change-Number: 3093
Gerrit-PatchSet: 1
Gerrit-Owner: X512 <danger_mail@xxxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in haiku[master]: Tracker: fix count view border broblem - Gerrit