From caef45dcf9c8ebecaa8dd74738aaf1bbca15ec93 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sat, 25 Oct 2008 11:28:06 +0000 Subject: [PATCH] syncronize the minimum size with the one of graphicsWidget() or widget() upon containment change svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=875720 --- popupapplet.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/popupapplet.cpp b/popupapplet.cpp index 42d3bda90..0de3469c0 100644 --- a/popupapplet.cpp +++ b/popupapplet.cpp @@ -202,6 +202,10 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints) lay->addItem(proxy); } } + + qreal left, top, right, bottom; + q->getContentsMargins(&left, &top, &right, &bottom); + q->setMinimumSize(minimum + QSizeF(left+right, top+bottom)); } else { //save the aspect ratio mode in case we drag'n drop in the Desktop later savedAspectRatio = q->aspectRatioMode(); @@ -265,6 +269,8 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints) if (icon && lay) { lay->addItem(icon); } + + q->setMinimumSize(0,0); } } }