bound the strip at top and bottom

except in the lockscreen it will slide away
This commit is contained in:
Marco Martin 2015-03-13 14:42:37 +01:00
parent 06e23491fb
commit c096ffb366
2 changed files with 7 additions and 4 deletions

View file

@ -18,11 +18,11 @@ Item {
opacity: (delegateItem.drag.target != null) ? 0.4 : 0
Behavior on opacity {
NumberAnimation {
duration: units.longDuration
easing.type: Easing.InOutQuad
duration: units.longDuration
easing.type: Easing.InOutQuad
}
}
}
}
//animate index change
onIdxChanged: {
if (delegateItem.drag.target != null) {

View file

@ -237,7 +237,10 @@ Item {
SatelliteStripe {
id: stripe
z: 99
y: Math.max(applicationsView.contentY + parent.height, parent.height - height)
property int viewPos: applicationsView.contentItem.height * applicationsView.visibleArea.yPosition
y: Math.max(viewPos,
Math.min(parent.height, viewPos + root.height) - height + Math.max(0, -(parent.height - height + applicationsView.contentY)))
PlasmaCore.Svg {
id: stripeIcons