Tracker: Don't sort poses in BPoseView::AddPosesCompleted().
Fixes #20018, #20050. The sort was causing the scroll position on change directory (go up/back) in navigation (single-window/browser) mode and causing issues with pose list when type-ahead filtering. Change-Id: Id07890462ac3ecd36f3db508671c77c943ee3e2c Reviewed-on: https://review.haiku-os.org/c/haiku/+/10860 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
4ce5404143
commit
9c6b7508fc
@@ -1734,9 +1734,6 @@ BPoseView::AddPosesCompleted()
|
||||
float lastItemTop = (CurrentPoseList()->CountItems() - 1) * fListElemHeight;
|
||||
if (bounds.top > lastItemTop)
|
||||
_inherited::ScrollTo(bounds.left, std::max(lastItemTop, 0.0f));
|
||||
|
||||
SortPoses();
|
||||
Invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user