Skip to content

Commit c74a59d

Browse files
committed
fix: use positionViewAtBeginning instead of set contentY
It is not recommended to use contentX or contentY to position the view at a particular index. This is unreliable since removing items from the start of the list does not cause all other items to be repositioned, and because the actual start of the view can vary based on the size of the delegates. PMS: BUG-356795 Log:
1 parent b30f28c commit c74a59d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qml/windowed/AppListView.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ FocusScope {
2424
let wasFollowing = listView.highlightFollowsCurrentItem
2525
listView.highlightFollowsCurrentItem = false
2626
listView.currentIndex = 0
27-
listView.contentY = 0
27+
listView.positionViewAtBeginning()
2828
listView.highlightFollowsCurrentItem = wasFollowing
2929
if (!LauncherController.visible) {
3030
alphabetCategoryPopup.close()

0 commit comments

Comments
 (0)