fix effects area for behaveAsPlasmaPanel

--in case the maxLength is below 100%
pull/6/head
Michail Vourlakos 6 years ago
parent 67e9bd610f
commit 03569f660d

@ -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;

Loading…
Cancel
Save