diff options
Diffstat (limited to 'src/imports/controls/material/Dial.qml')
-rw-r--r-- | src/imports/controls/material/Dial.qml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/imports/controls/material/Dial.qml b/src/imports/controls/material/Dial.qml index d3f6bb65..a05982cc 100644 --- a/src/imports/controls/material/Dial.qml +++ b/src/imports/controls/material/Dial.qml @@ -46,6 +46,10 @@ T.Dial { //! [background] background: Rectangle { + x: control.width / 2 - width / 2 + y: control.height / 2 - height / 2 + width: Math.max(64, Math.min(control.width, control.height)) + height: Math.max(64, Math.min(control.width, control.height)) color: "transparent" radius: width / 2 @@ -57,11 +61,11 @@ T.Dial { handle: Rectangle { id: handleItem - x: background.width / 2 - handle.width / 2 - y: background.height / 2 - handle.height / 2 + x: background.x + background.width / 2 - handle.width / 2 + y: background.y + background.height / 2 - handle.height / 2 transform: [ Translate { - y: -background.height * 0.35 + y: -background.height * 0.4 + handle.height / 2 }, Rotation { angle: control.angle |