diff --git a/src/controls/templates/OverlaySheet.qml b/src/controls/templates/OverlaySheet.qml --- a/src/controls/templates/OverlaySheet.qml +++ b/src/controls/templates/OverlaySheet.qml @@ -147,8 +147,8 @@ } onWidthChanged: { var width = Math.max(root.width/2, Math.min(root.width, root.contentItem.implicitWidth)); - contentItem.contentItem.x = (root.width - width)/2 - contentItem.contentItem.width = width; + root.contentItem.x = (root.width - width)/2 + root.contentItem.width = width; } onHeightChanged: { var focusItem;