[Plasma Components 3 Slider] Fix implicit size of handle

Fixes implicit size of the slider to include the handle
This commit is contained in:
Kai Uwe Broulik 2018-09-06 14:43:38 +02:00
parent 3d078c01ee
commit a3e96eb17a

View File

@ -46,8 +46,9 @@ T.Slider {
x: control.leftPadding + (horizontal ? control.visualPosition * (control.availableWidth - width) : (control.availableWidth - width) / 2)
y: control.topPadding + (horizontal ? (control.availableHeight - height) / 2 : control.visualPosition * (control.availableHeight - height))
width: firstHandle.naturalSize.width
height: firstHandle.naturalSize.height
implicitWidth: firstHandle.naturalSize.width
implicitHeight: firstHandle.naturalSize.height
Private.RoundShadow {
anchors.fill: parent
imagePath: "widgets/slider"