Fix mapFromItem call too
commitcf786ac21d6cceb0a448a522aa9dc41b9c314beb
authorAlbert Astals Cid <albert.astals@canonical.com>
dateWed 27 Jul 2016, 16:51 (10 years ago)
parent0d23f8d
qml/Launcher/LauncherPanel.qml+1−1
@@ -758,7 +758,7 @@ Rectangle {
758758 }
759759
760760 // internal
761− property int itemCenter: item ? root.mapFromItem(quickList.item).y + (item.height / 2) + quickList.item.offset : units.gu(1)
761+ property int itemCenter: item ? root.mapFromItem(quickList.item, 0, 0).y + (item.height / 2) + quickList.item.offset : units.gu(1)
762762 property int offset: itemCenter + (height/2) + units.gu(1) > parent.height ? -itemCenter - (height/2) - units.gu(1) + parent.height :
763763 itemCenter - (height/2) < units.gu(1) ? (height/2) - itemCenter + units.gu(1) : 0
764764