diff --git a/src/declarativeimports/plasmacomponents/qml/Slider.qml b/src/declarativeimports/plasmacomponents/qml/Slider.qml index 7e84c0028..31cf4c9ad 100644 --- a/src/declarativeimports/plasmacomponents/qml/Slider.qml +++ b/src/declarativeimports/plasmacomponents/qml/Slider.qml @@ -180,8 +180,8 @@ Item { value: 0 stepSize: 0.0 inverted: false - positionAtMinimum: -handle.width/2 - positionAtMaximum: contents.width - handle.width/2 + positionAtMinimum: 0 + positionAtMaximum: contents.width - handle.width } PlasmaCore.Svg { @@ -198,6 +198,8 @@ Item { left: parent.left right: parent.right verticalCenter: parent.verticalCenter + leftMargin: handle.width/4 + rightMargin: handle.width/4 } } PlasmaCore.FrameSvgItem { @@ -205,8 +207,8 @@ Item { imagePath: "widgets/slider" prefix: "groove-highlight" height: groove.height - width: inverted ? groove.width - handle.x : fakeHandle.x + handle.width/2 - x: inverted ? handle.x : 0 + width: inverted ? groove.width - handle.x : fakeHandle.x + handle.width/4 + x: inverted ? handle.x : handle.width/4 anchors.verticalCenter: parent.verticalCenter //use the same animation when resizing a slider as moving the slider this keeps it in line when using key shortcuts