@@ -102,8 +102,9 @@ Item {
102 spacing: units.gu(0.5)
102 spacing: units.gu(0.5)
104 // The size of the area the ListView is extended to make sure items are not
104 // The size of the area the ListView is extended to make sure items are not
105− // destroyed. Note that if the move() operation when dragging switches
105+ // destroyed when dragging them outside the list. This needs to be at least
106− // the item with one that doesn't have a delegate yet everything breaks badly.
106+ // itemHeight to prevent folded items from disappearing and DragArea limits
107+ // need to be smaller than this size to avoid breakage.
107 property int extensionSize: itemHeight * 3
108 property int extensionSize: itemHeight * 3
109 // The height of the area where icons start getting folded
110 // The height of the area where icons start getting folded
@@ -214,6 +215,8 @@ Item {
214 anchors.fill: parent
215 anchors.fill: parent
215 anchors.topMargin: launcherListView.topMargin
216 anchors.topMargin: launcherListView.topMargin
216 anchors.bottomMargin: launcherListView.bottomMargin
217 anchors.bottomMargin: launcherListView.bottomMargin
218+ drag.minimumY: -launcherListView.topMargin
219+ drag.maximumY: height + launcherListView.bottomMargin
218 property int draggedIndex: -1
221 property int draggedIndex: -1
219 property var selectedItem
222 property var selectedItem