diff --git a/examples/gallery/content/Controls.qml b/examples/gallery/content/Controls.qml
index 0f1bf9d1e30b22c7e8f51b7a5667f42e5e495400..c3a37d17106eac9ed6a53e264d790f134c021dfa 100644
--- a/examples/gallery/content/Controls.qml
+++ b/examples/gallery/content/Controls.qml
@@ -181,10 +181,7 @@ Item {
                 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
-                }
+                anchors { right: parent.right }
             }
         }
     }