diff --git a/src/plugins/qmldesigner/components/stateseditor/stateslist.qml b/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
index eec79f020535dfb03546c75ab0cfe1219e3cf6b3..4f5832274189f93f6f0d33d2b1b65fed5d17f3d2 100644
--- a/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
+++ b/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
@@ -46,13 +46,14 @@ Rectangle {
         anchors.left:root.left
         anchors.right:root.right
         anchors.top:root.top
-        height:statesRow.height
+        height:statesRow.height+1
         anchors.topMargin:-1;
         anchors.leftMargin:-1;
 
         viewportHeight: height
         viewportWidth: statesRow.width+2
 
+
         Row {
             id: statesRow
             spacing:10