diff --git a/examples/gallery/content/Controls.qml b/examples/gallery/content/Controls.qml
index 844e39424b090e3ec6c1f9ab3d6fcbc7b581ea2c..66a446b580998cd88eeee2acb9eecef443a7dad5 100644
--- a/examples/gallery/content/Controls.qml
+++ b/examples/gallery/content/Controls.qml
@@ -55,6 +55,7 @@ Item {
         anchors.margins: 8
         spacing: 16
         Column {
+            id: firstColumn
             spacing: 9
             Row {
                 spacing:8
@@ -118,6 +119,11 @@ Item {
         Column {
             id: rightcol
             spacing: 12
+            anchors {
+                top: parent.top
+                bottom: parent.bottom
+            }
+
             GroupBox {
                 id: group1
                 title: "CheckBox"
@@ -168,6 +174,12 @@ Item {
                 frame: frameCheckbox.checked
                 text: loremIpsum + loremIpsum
                 KeyNavigation.tab: button1
+                width: contentRow.width - firstColumn.width - contentRow.spacing
+                height: parent.height - group1.height - group2.height - 2 * parent.spacing
+                anchors {
+                    right: parent.right
+                    rightMargin: 12
+                }
             }
         }
     }