reposition the popup after saving, so won't jump always to the old size
svn path=/trunk/KDE/kdelibs/; revision=894071
This commit is contained in:
parent
9116edc392
commit
212a4238bd
@ -298,7 +298,6 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
|
||||
}
|
||||
|
||||
dialog->adjustSize();
|
||||
updateDialogPosition();
|
||||
|
||||
if (icon && lay) {
|
||||
lay->addItem(icon);
|
||||
@ -476,13 +475,13 @@ void PopupAppletPrivate::dialogSizeChanged()
|
||||
{
|
||||
//Reposition the dialog
|
||||
if (dialog) {
|
||||
updateDialogPosition();
|
||||
|
||||
KConfigGroup sizeGroup = q->config();
|
||||
sizeGroup = KConfigGroup(&sizeGroup, "PopupApplet");
|
||||
sizeGroup.writeEntry("DialogHeight", dialog->height());
|
||||
sizeGroup.writeEntry("DialogWidth", dialog->width());
|
||||
|
||||
updateDialogPosition();
|
||||
|
||||
emit q->configNeedsSaving();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user