summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Hein <[email protected]>2018-11-19 15:47:18 +0900
committerEike Hein <[email protected]>2018-11-29 00:12:10 +0900
commit74ff6586944f5959d540a4312c1baffeeed36e87 (patch)
treea9f13699861cf78000da8cbed1c04ae1b04f8557
parent002809f989a167df609a56f57c2b69042007f01a (diff)
Always scroll views up when the fullrepr is collapsed.
Summary: BUG:400664 Reviewers: #plasma Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D17004
-rw-r--r--applets/kickoff/package/contents/ui/ApplicationsView.qml1
-rw-r--r--applets/kickoff/package/contents/ui/KickoffListView.qml11
2 files changed, 10 insertions, 2 deletions
diff --git a/applets/kickoff/package/contents/ui/ApplicationsView.qml b/applets/kickoff/package/contents/ui/ApplicationsView.qml
index b9d71fa..2530fd1 100644
--- a/applets/kickoff/package/contents/ui/ApplicationsView.qml
+++ b/applets/kickoff/package/contents/ui/ApplicationsView.qml
@@ -64,7 +64,6 @@ Item {
function reset() {
applicationsView.model = rootModel;
- applicationsView.listView.positionViewAtBeginning();
applicationsView.clearBreadcrumbs();
}
diff --git a/applets/kickoff/package/contents/ui/KickoffListView.qml b/applets/kickoff/package/contents/ui/KickoffListView.qml
index 2f3e7df..b3343dd 100644
--- a/applets/kickoff/package/contents/ui/KickoffListView.qml
+++ b/applets/kickoff/package/contents/ui/KickoffListView.qml
@@ -54,7 +54,16 @@ FocusScope {
listView.decrementCurrentIndex();
}
-
+ Connections {
+ target: plasmoid
+
+ onExpandedChanged: {
+ if (!expanded) {
+ listView.positionViewAtBeginning();
+ }
+ }
+ }
+
PlasmaExtras.ScrollArea {
id: scrollArea
frameVisible: false