Revert r42120.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42121 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2011-06-12 11:24:02 +00:00
parent b52c7c5943
commit 2a55b919c3

View File

@ -1022,7 +1022,10 @@ BListView::ScrollToSelection()
if (Bounds().Contains(itemFrame))
return;
ScrollTo(itemFrame.left, itemFrame.top);
if (itemFrame.top < Bounds().top)
ScrollTo(itemFrame.left, itemFrame.top);
else
ScrollTo(itemFrame.left, itemFrame.bottom - Bounds().Height());
}