diff --git a/extenders/extendergroup.cpp b/extenders/extendergroup.cpp index 0c56fbe6f..25f190ce4 100644 --- a/extenders/extendergroup.cpp +++ b/extenders/extendergroup.cpp @@ -245,6 +245,7 @@ void ExtenderGroupPrivate::addItemToGroup(Plasma::ExtenderItem *item) q->show(); } scrollWidget->setVisible(!q->isCollapsed()); + q->extender()->resize(q->extender()->effectiveSizeHint(Qt::PreferredSize)); } } @@ -259,6 +260,7 @@ void ExtenderGroupPrivate::removeItemFromGroup(Plasma::ExtenderItem *item) childsWidget->effectiveSizeHint(Qt::PreferredSize).height()); layout->removeItem(item); item->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); + q->extender()->resize(q->extender()->effectiveSizeHint(Qt::PreferredSize)); } }