Commit cbdb6b6f authored by Marco Martin's avatar Marco Martin
Browse files

reset position when launched

parent e4014bd0
......@@ -39,6 +39,8 @@ LauncherContainer {
readonly property int cellHeight: availableCellHeight
launcherGrid: root
signal launched
frame.width: width
Repeater {
......@@ -74,6 +76,7 @@ LauncherContainer {
delegate.iconItem.Kirigami.ScenePosition.y + delegate.iconItem.height/2,
Math.min(delegate.iconItem.width, delegate.iconItem.height)
)});
root.launched();
}
onParentFromLocationChanged: {
if (!launcherDragManager.active && parent != parentFromLocation) {
......
......@@ -265,7 +265,10 @@ Item {
left: parent.left
right: parent.right
}
onLaunched: {
scrollAnim.to = 0;
scrollAnim.restart();
}
favoriteStrip: favoriteStrip
appletsLayout: appletsLayout
}
......
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