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:
parent
c0a15174a6
commit
e6c710f4bb
@ -1059,14 +1059,19 @@ BContainerWindow::InitLayout()
|
|||||||
if (fPoseView->VScrollBar() != NULL) {
|
if (fPoseView->VScrollBar() != NULL) {
|
||||||
fVScrollBarContainer = new BGroupView(B_VERTICAL, 0);
|
fVScrollBarContainer = new BGroupView(B_VERTICAL, 0);
|
||||||
fVScrollBarContainer->GroupLayout()->AddView(fPoseView->VScrollBar());
|
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);
|
fPoseContainer->GridLayout()->AddView(fVScrollBarContainer, 1, 1);
|
||||||
}
|
}
|
||||||
if (fPoseView->HScrollBar() != NULL) {
|
if (fPoseView->HScrollBar() != NULL) {
|
||||||
BGroupView* hScrollBarContainer = new BGroupView(B_VERTICAL, 0);
|
BGroupView* hScrollBarContainer = new BGroupView(B_VERTICAL, 0);
|
||||||
hScrollBarContainer->GroupLayout()->AddView(fPoseView->HScrollBar());
|
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);
|
fCountContainer->GroupLayout()->AddView(hScrollBarContainer);
|
||||||
|
|
||||||
|
fPoseView->CountView()->SetExplicitMinSize(
|
||||||
|
fPoseView->HScrollBar()->MinSize());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user