on xenial help sign in
take item's offset into account when calculating the quicklist position
commit769748598125e35011dcd7215405dcc5c3308e14 authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 7 Jan 2016, 18:35 (11 years ago) parent545b964
1 file changed+1−1
qml/Launcher/LauncherPanel.qml+1−1
qml/Launcher/LauncherPanel.qml+1−1
@@ -692,7 +692,7 @@ Rectangle {
692692 property var item
693693
694694 // internal
695− property int itemCenter: item ? root.mapFromItem(quickList.item).y + (item.height / 2) : units.gu(1)
695+ property int itemCenter: item ? root.mapFromItem(quickList.item).y + (item.height / 2) + quickList.item.offset : units.gu(1)
696696 property int offset: itemCenter + (height/2) + units.gu(1) > parent.height ? -itemCenter - (height/2) - units.gu(1) + parent.height :
697697 itemCenter - (height/2) < units.gu(1) ? (height/2) - itemCenter + units.gu(1) : 0
698698