Revert r42120.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42121 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b52c7c5943
commit
2a55b919c3
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user