From 03569f660d4908788b8f3086744c14a71798b51d Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Mon, 24 Jun 2019 16:39:10 +0300 Subject: [PATCH] fix effects area for behaveAsPlasmaPanel --in case the maxLength is below 100% --- containment/package/contents/ui/PanelBox.qml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/containment/package/contents/ui/PanelBox.qml b/containment/package/contents/ui/PanelBox.qml index c434efc4f..6887a660c 100644 --- a/containment/package/contents/ui/PanelBox.qml +++ b/containment/package/contents/ui/PanelBox.qml @@ -418,10 +418,15 @@ Item{ if (!latteView) return; - var rootGeometry = mapToItem(root, 0, 0); + if (!root.behaveAsPlasmaPanel) { + var rootGeometry = mapToItem(root, 0, 0); + efGeometry.x = rootGeometry.x; + efGeometry.y = rootGeometry.y; + } else { + efGeometry.x = 0; + efGeometry.y = 0; + } - efGeometry.x = rootGeometry.x; - efGeometry.y = rootGeometry.y; efGeometry.width = width; efGeometry.height = height;