From fe63a63efc96b7c8187cd8d142e7ef960d4ee6b7 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Mon, 28 Feb 2022 22:51:22 +0200 Subject: [PATCH] clones:fix parabolic behavior on alignment changes --more specificaly before this patch when the host dock was changing from justify to center alignment clones parabolic effect did not work as intended --- .../package/contents/ui/applet/AppletItem.qml | 29 +++++++++++++++---- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/containment/package/contents/ui/applet/AppletItem.qml b/containment/package/contents/ui/applet/AppletItem.qml index 13f49f4c7..aa4c255c9 100644 --- a/containment/package/contents/ui/applet/AppletItem.qml +++ b/containment/package/contents/ui/applet/AppletItem.qml @@ -63,7 +63,7 @@ Item { } if ((root.isHorizontal && applet.Layout.fillWidth===true) - || (root.isVertical && applet.Layout.fillHeight===true)) { + || (root.isVertical && applet.Layout.fillHeight===true)) { return !isHidden; } @@ -471,28 +471,46 @@ Item { function checkIndex(){ index = -1; + var startAppletIndex = -1; for(var i=0; i