Remove unnecessary calculations from BListView::ScrollToSelection(). At least I
see no useful purpose to the distinction made here. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42120 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
6b0007fb77
commit
b52c7c5943
@ -1022,10 +1022,7 @@ BListView::ScrollToSelection()
|
||||
if (Bounds().Contains(itemFrame))
|
||||
return;
|
||||
|
||||
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