Revert r42120.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42121 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1022,7 +1022,10 @@ BListView::ScrollToSelection()
|
|||||||
if (Bounds().Contains(itemFrame))
|
if (Bounds().Contains(itemFrame))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ScrollTo(itemFrame.left, itemFrame.top);
|
if (itemFrame.top < Bounds().top)
|
||||||
|
ScrollTo(itemFrame.left, itemFrame.top);
|
||||||
|
else
|
||||||
|
ScrollTo(itemFrame.left, itemFrame.bottom - Bounds().Height());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user