diff --git a/applets/notifications/package/contents/ui/main.qml b/applets/notifications/package/contents/ui/main.qml --- a/applets/notifications/package/contents/ui/main.qml +++ b/applets/notifications/package/contents/ui/main.qml @@ -73,6 +73,18 @@ Plasmoid.compactRepresentation: NotificationIcon { } + // Always scroll to the top when opening as that's where the important stuff goes on + Plasmoid.onExpandedChanged: { + if (Plasmoid.expanded) { + // contentY doesn't really work with ListView (creates and destroys delegates on demand) + // so first use its "move to the top" method and then move it further to show all of its "header" contents + historyList.positionViewAtBeginning(); + historyList.contentY = Qt.binding(function() { + return -historyList.headerItem.height; + }); + } + } + hoverEnabled: !UiProperties.touchInput onActiveItemsCountChanged: {