update containment spacer to multiple internal

pull/2/head
Michail Vourlakos 7 years ago
parent 0e2f4debb0
commit 9d8c99768f

@ -54,13 +54,28 @@ Item{
Connections{
target: root
onSeparatorsUpdated: {
hiddenSpacer.neighbourSeparator = hiddenSpacer.rightSpacer ?
parabolicManager.isSeparator(index+1) : parabolicManager.isSeparator(index-1);
}
onSeparatorsUpdated: updateNeighbour();
}
Rectangle{
Connections{
target: root.latteApplet ? root.latteApplet : null
onSeparatorsUpdated: updateNeighbour();
}
function updateNeighbour() {
var gAppN = parabolicManager.availableHigherId(index+1);
var lAppN = parabolicManager.availableLowerId(index-1);
var latteNeighbour = root.latteApplet && ((gAppN === root.latteAppletPos) || (lAppN === root.latteAppletPos ));
hiddenSpacer.neighbourSeparator = hiddenSpacer.rightSpacer ?
parabolicManager.isSeparator(index+1)
|| (latteNeighbour && gAppN===root.latteAppletPos && root.latteApplet.parabolicManager.taskIsSeparator(0)) :
parabolicManager.isSeparator(index-1)
|| (latteNeighbour && lAppN===root.latteAppletPos && root.latteApplet.parabolicManager.taskIsSeparator(root.tasksCount-1)) ;
}
/* Rectangle{
width: !root.isVertical ? parent.width : 1
height: !root.isVertical ? 1 : parent.height
x: root.isVertical ? parent.width /2 : 0
@ -69,5 +84,5 @@ Item{
border.width: 1
border.color: "red"
color: "transparent"
}
}*/
}

@ -112,7 +112,7 @@ Item{
NumberAnimation { duration: root.directRenderAnimationTime }
}
Rectangle{
/*Rectangle{
width: !root.vertical ? parent.width : 1
height: !root.vertical ? 1 : parent.height
x: root.vertical ? parent.width /2 : 0
@ -120,5 +120,5 @@ Item{
border.width: 1
border.color: "red"
color: "transparent"
}
}*/
}

Loading…
Cancel
Save