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.
This commit is contained in:
Augustin Cavalier 2020-07-06 23:40:55 -04:00
parent c0a15174a6
commit e6c710f4bb

View File

@ -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());
}
}