Tracker: fix count view border problem

Fixes #16439.

Change-Id: If936517a0ecfaba994f5d48fcc2fd159cb8ea11f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3093
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
X512 2020-07-26 11:42:30 +09:00 committed by waddlesplash
parent cf238ffce1
commit 6aee9d6424

View File

@ -1070,8 +1070,13 @@ BContainerWindow::InitLayout()
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 has
// no upper border.
size.height -= 1;
}
fPoseView->CountView()->SetExplicitMinSize(size);
}
}