@@ -151,12 +151,11 @@ Rectangle {
151151 {
152152 var button = findChild(buttonGroup, "moreLessButton");
153153 var buttonColumn = findChild(buttonGroup, "buttonColumn");
154− var buttonColumnInitialHeight = buttonColumn.height;
155154 var buttonGroupInitialHeight = buttonGroup.height;
156155 verify(button != null);
157156 mouseClick(button);
158157 tryCompare(buttonColumn, "height", buttonColumn.implicitHeight);
159− tryCompare(buttonGroup, "height", buttonGroupInitialHeight + (buttonColumn.height - buttonColumnInitialHeight + units.gu(1)));
158+ tryCompare(buttonGroup, "height", buttonGroupInitialHeight + (buttonColumn.height + buttonColumn.anchors.topMargin));
160159 }
161160
162161 function test_comboButton(data) {