From e6c710f4bb482ddc5f19546ec501ed3af1bdd2f4 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Mon, 6 Jul 2020 23:40:55 -0400 Subject: [PATCH] Tracker: Set a minimum size on the count view... ...when it is paired with a horizontal scrollbar. This has the added benefit of restoring the previous horizontal scrollbar size, it having been lost in the prior refactor due to the "container views" removing 2 pixels for the borders (previously, there was a different sizing system for the count view that provided it.) Fixes #16368 item 1. --- src/kits/tracker/ContainerWindow.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/kits/tracker/ContainerWindow.cpp b/src/kits/tracker/ContainerWindow.cpp index 77bc0d36cd..fb7b01c628 100644 --- a/src/kits/tracker/ContainerWindow.cpp +++ b/src/kits/tracker/ContainerWindow.cpp @@ -1059,14 +1059,19 @@ BContainerWindow::InitLayout() if (fPoseView->VScrollBar() != NULL) { fVScrollBarContainer = new BGroupView(B_VERTICAL, 0); fVScrollBarContainer->GroupLayout()->AddView(fPoseView->VScrollBar()); - fVScrollBarContainer->GroupLayout()->SetInsets(-1, forFilePanel ? 0 : -1, 0, 0); + fVScrollBarContainer->GroupLayout()->SetInsets(-1, forFilePanel ? 0 : -1, + 0, 0); fPoseContainer->GridLayout()->AddView(fVScrollBarContainer, 1, 1); } if (fPoseView->HScrollBar() != NULL) { BGroupView* hScrollBarContainer = new BGroupView(B_VERTICAL, 0); hScrollBarContainer->GroupLayout()->AddView(fPoseView->HScrollBar()); - hScrollBarContainer->GroupLayout()->SetInsets(0, -1, 0, forFilePanel ? 0 : -1); + hScrollBarContainer->GroupLayout()->SetInsets(0, -1, 0, + forFilePanel ? 0 : -1); fCountContainer->GroupLayout()->AddView(hScrollBarContainer); + + fPoseView->CountView()->SetExplicitMinSize( + fPoseView->HScrollBar()->MinSize()); } }