on xenial help sign in
enable clipping on unfoled list while dnd
0e2d525Michael Zanetti
Launcher/LauncherPanel.qml+17−11
@@ -82,6 +82,10 @@ Item {
82 anchors.right: parent.right
82 anchors.right: parent.right
83 height: parent.height - dashItem.height - parent.spacing*2
83 height: parent.height - dashItem.height - parent.spacing*2
84
84
85+ Item {
86+ anchors.fill: parent
87+ clip: true
88+
85 ListView {
89 ListView {
86 id: launcherListView
90 id: launcherListView
87 objectName: "launcherListView"
91 objectName: "launcherListView"
@@ -136,7 +140,7 @@ Item {
136 },
140 },
137 State {
141 State {
138 name: "expanded"
142 name: "expanded"
139− //when: dndArea.draggedIndex >= 0 && !dragging
143+ when: dndArea.draggedIndex >= 0 && !dragging
140 PropertyChanges {
144 PropertyChanges {
141 target: launcherDelegate
145 target: launcherDelegate
142 angle: 0
146 angle: 0
@@ -167,16 +171,6 @@ Item {
167 property int startY
171 property int startY
168 property var quickListPopover
172 property var quickListPopover
169
173
170− LauncherDelegate {
171− id: fakeDragItem
172− visible: dndArea.draggedIndex >= 0
173− itemWidth: launcherListView.itemSize
174− itemHeight: launcherListView.itemSize
175− height: itemHeight
176− width: itemWidth
177− rotation: root.rotation
178− }
179−
180 onPressed: {
174 onPressed: {
181 var realContentY = launcherListView.contentY + launcherListView.topMargin
175 var realContentY = launcherListView.contentY + launcherListView.topMargin
182 selectedItem = launcherListView.itemAt(mouseX, mouseY + realContentY)
176 selectedItem = launcherListView.itemAt(mouseX, mouseY + realContentY)
@@ -368,7 +362,19 @@ Item {
368 onClicked: launcherListView.flick(0, -launcherListView.clickFlickSpeed)
362 onClicked: launcherListView.flick(0, -launcherListView.clickFlickSpeed)
369 }
363 }
370 }
364 }
365+ }
366+
367+ LauncherDelegate {
368+ id: fakeDragItem
369+ visible: dndArea.draggedIndex >= 0
370+ itemWidth: launcherListView.itemSize
371+ itemHeight: launcherListView.itemSize
372+ height: itemHeight
373+ width: itemWidth
374+ rotation: root.rotation
375+ }
371 }
376 }
377+
372 }
378 }
373
379
374 Component {
380 Component {