diff --git a/containment/package/contents/ui/ParabolicManager.qml b/containment/package/contents/ui/ParabolicManager.qml index 58e791edf..fd7404b87 100644 --- a/containment/package/contents/ui/ParabolicManager.qml +++ b/containment/package/contents/ui/ParabolicManager.qml @@ -103,7 +103,7 @@ Item { var tHIndex = -1; if(!root.latteApplet || Math.abs(root.latteAppletPos-index)>1 || !root.hasInternalSeparator - || (root.hasInternalSeparator + || (root.latteApplet && root.hasInternalSeparator && ((root.latteApplet.internalSeparatorPos>0 && root.latteApplet.internalSeparatorPosroot.latteAppletPos) || (root.latteApplet.internalSeparatorPos===root.tasksCount-1 && index -1 + property bool hasInternalSeparator: false property int internalSeparatorPos: -1 + onInternalSeparatorPosChanged: { + if (internalSeparatorPos>-1) + hasInternalSeparator = true; + else + hasInternalSeparator = false; + } + //!this is used in order to update the index when the signal is for applets //!outside the latte plasmoid function updateIdSendScale(index, zScale, zStep){ diff --git a/plasmoid/package/contents/ui/task/TaskDelegate.qml b/plasmoid/package/contents/ui/task/TaskDelegate.qml index d0b473b65..52d0cff4a 100644 --- a/plasmoid/package/contents/ui/task/TaskDelegate.qml +++ b/plasmoid/package/contents/ui/task/TaskDelegate.qml @@ -285,7 +285,7 @@ MouseArea{ property bool neighbourSeparator: false //in case there is a neighbour separator - property int separatorSpace: (parabolicManager.hasInternalSeparator + property int separatorSpace: (parabolicManager.internalSeparatorPos !== -1 && parabolicManager.internalSeparatorPos === index-1) || neighbourSeparator ? (2+root.iconMargin/2) : 0 @@ -337,7 +337,7 @@ MouseArea{ property bool neighbourSeparator: false //in case there is a neighbour separator - property int separatorSpace: (parabolicManager.hasInternalSeparator + property int separatorSpace: (parabolicManager.internalSeparatorPos !== -1 && parabolicManager.internalSeparatorPos === index+1) || neighbourSeparator ? (2+root.iconMargin/2) : 0