Fixed some weird fallback code, I don't think it's used and added a TODO
for whoever stumbles there next... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30067 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ffdb0ccf4f
commit
72cd1c7726
@ -8093,15 +8093,19 @@ BPoseView::Extent() const
|
||||
void
|
||||
BPoseView::SetScrollBarsTo(BPoint point)
|
||||
{
|
||||
BPoint origin;
|
||||
|
||||
if (fHScrollBar && fVScrollBar) {
|
||||
fHScrollBar->SetValue(point.x);
|
||||
fVScrollBar->SetValue(point.y);
|
||||
} else {
|
||||
origin = LeftTop();
|
||||
ScrollTo(BPoint(point.x, origin.y));
|
||||
ScrollTo(BPoint(origin.x, point.y));
|
||||
// TODO: I don't know what this was supposed to work around
|
||||
// (ie why it wasn't calling ScrollTo(point) simply). Although
|
||||
// it cannot have been tested, since it was broken before, I am
|
||||
// still leaving this, since I know there can be a subtle change in
|
||||
// behaviour (BView<->BScrollBar feedback effects) when scrolling
|
||||
// both directions at once versus separately.
|
||||
BPoint origin = LeftTop();
|
||||
ScrollTo(BPoint(point.x, point.y));
|
||||
ScrollTo(point);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user