diff --git a/groups.cc b/groups.cc
index 2163a47a..81ee3a63 100644
--- a/groups.cc
+++ b/groups.cc
@@ -86,6 +86,10 @@ void Groups::countChanged()
ui.renameGroup->setEnabled( en );
ui.removeGroup->setEnabled( en );
ui.removeAllGroups->setEnabled( en );
+
+ int stretch = ui.groups->count() / 5;
+ if( stretch > 3 ) stretch = 3;
+ ui.gridLayout->setColumnStretch( 2, stretch );
}
void Groups::addNew()
diff --git a/groups.ui b/groups.ui
index c9bf34f8..916167e7 100644
--- a/groups.ui
+++ b/groups.ui
@@ -13,7 +13,7 @@
Groups
-
+
-
-