Commit 19332567 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Notifications] Always scroll to the top when opening

The more important recent stuff is at the top.

BUG: 391646
FIXED-IN: 5.12.5

Differential Revision:
parent 856caef8
......@@ -73,6 +73,16 @@ MouseEventListener {
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 and positions them randomly)
// so first use its "move to the top" method and then move it further up to reveal all of its "header" contents
historyList.contentY = historyList.originY;
hoverEnabled: !UiProperties.touchInput
onActiveItemsCountChanged: {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment