diff --git a/applets/systemtray/package/contents/ui/CurrentItemHighLight.qml b/applets/systemtray/package/contents/ui/CurrentItemHighLight.qml --- a/applets/systemtray/package/contents/ui/CurrentItemHighLight.qml +++ b/applets/systemtray/package/contents/ui/CurrentItemHighLight.qml @@ -18,6 +18,7 @@ */ import QtQuick 2.1 +import org.kde.plasma.plasmoid 2.0 import org.kde.plasma.core 2.0 as PlasmaCore PlasmaCore.FrameSvgItem { @@ -27,10 +28,10 @@ property Item target property int location - x: Math.max(0, (target ? target.x : 0) + (visualParent ? visualParent.x : 0)) - y: Math.max(0, (target ? target.y : 0) + (visualParent ? visualParent.y : 0)) - width: Math.min(parent.width, target ? target.width : 0) - height: Math.min(parent.height, target ? target.height : 0) + x: plasmoid.formFactor === PlasmaCore.Types.Vertical ? 0 : Math.max(0, (target ? target.x : 0) + (visualParent ? visualParent.x : 0)) + y: plasmoid.formFactor === PlasmaCore.Types.Horizontal ? 0 : Math.max(0, (target ? target.y : 0) + (visualParent ? visualParent.y : 0)) + width: plasmoid.formFactor === PlasmaCore.Types.Vertical ? parent.width : Math.min(parent.width, target ? target.width : 0) + height: plasmoid.formFactor === PlasmaCore.Types.Horizontal ? parent.height : Math.min(parent.height, target ? target.height : 0) imagePath: "widgets/tabbar" prefix: {