fix position of custombackground on screen corners

BUG:448519
FIXED-IN:0.10.8
pull/27/head
Michail Vourlakos 3 years ago
parent 06a293eb80
commit 7ff8deb0b5

@ -188,7 +188,7 @@ Item{
return 0; return 0;
} }
anchors.verticalCenterOffset: { anchors.verticalCenterOffset: {
if (allBorders || (noOfBorders>=2 && bothHorizontals) || (noOfBorders==2 && !bothVerticals && borderWidth===0)) { if (allBorders || (noOfBorders>=2 && bothHorizontals)) {
return 0; return 0;
} }
@ -217,7 +217,7 @@ Item{
return 0; return 0;
} }
anchors.horizontalCenterOffset: { anchors.horizontalCenterOffset: {
if (allBorders || (noOfBorders>=2 && bothVerticals) || (noOfBorders==2 && !bothHorizontals && borderWidth===0)) { if (allBorders || (noOfBorders>=2 && bothVerticals)) {
return 0; return 0;
} }

Loading…
Cancel
Save