Tracker: fix CountView sizing issues.

And now, the sizing differences between layout Tracker and non-layout Tracker
should not be noticeable to the naked eye.
This commit is contained in:
Augustin Cavalier 2015-03-02 12:17:35 -05:00
parent cd70e3e26c
commit 1d329e209a

View File

@ -962,7 +962,7 @@ BContainerWindow::InitLayout()
item = fCountContainer->GroupLayout()->AddView(fPoseView->CountView()); item = fCountContainer->GroupLayout()->AddView(fPoseView->CountView());
minSize = item->MinSize(); minSize = item->MinSize();
maxSize = item->MaxSize(); maxSize = item->MaxSize();
item->SetExplicitMinSize(BSize(kCountViewWidth, minSize.Height())); item->SetExplicitMinSize(BSize(kCountViewWidth, B_H_SCROLL_BAR_HEIGHT));
item->SetExplicitMaxSize(BSize(kCountViewWidth, maxSize.Height())); item->SetExplicitMaxSize(BSize(kCountViewWidth, maxSize.Height()));
// Eliminate the extra borders // Eliminate the extra borders
@ -973,13 +973,13 @@ 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, 0, 0, 1); fVScrollBarContainer->GroupLayout()->SetInsets(-1, 0, 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, 0); hScrollBarContainer->GroupLayout()->SetInsets(0, -1, 0, -1);
fCountContainer->GroupLayout()->AddView(hScrollBarContainer); fCountContainer->GroupLayout()->AddView(hScrollBarContainer);
} }
} }