minimum size fixes

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=871187
This commit is contained in:
Aaron J. Seigo 2008-10-14 05:20:20 +00:00
parent 020c81e647
commit 025d33adab

View File

@ -180,6 +180,7 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
q->setLayout(lay);
}
q->setMinimumSize(gWidget->minimumSize() + marginSize);
lay->addItem(gWidget);
//gWidget->installEventFilter(q);
} else if (qWidget) {
@ -193,7 +194,7 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
lay->addItem(proxy);
}
q->setMinimumSize(qWidget ? qWidget->minimumSize() + marginSize : QSizeF(300, 200));
q->setMinimumSize(qWidget->minimumSize() + marginSize);
}
} else {
//save the aspect ratio mode in case we drag'n drop in the Desktop later