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

@ -237,7 +237,10 @@ Item {
SatelliteStripe { SatelliteStripe {
id: stripe id: stripe
z: 99 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 { PlasmaCore.Svg {
id: stripeIcons id: stripeIcons