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();
|
dialog->adjustSize();
|
||||||
updateDialogPosition();
|
|
||||||
|
|
||||||
if (icon && lay) {
|
if (icon && lay) {
|
||||||
lay->addItem(icon);
|
lay->addItem(icon);
|
||||||
@ -476,13 +475,13 @@ void PopupAppletPrivate::dialogSizeChanged()
|
|||||||
{
|
{
|
||||||
//Reposition the dialog
|
//Reposition the dialog
|
||||||
if (dialog) {
|
if (dialog) {
|
||||||
updateDialogPosition();
|
|
||||||
|
|
||||||
KConfigGroup sizeGroup = q->config();
|
KConfigGroup sizeGroup = q->config();
|
||||||
sizeGroup = KConfigGroup(&sizeGroup, "PopupApplet");
|
sizeGroup = KConfigGroup(&sizeGroup, "PopupApplet");
|
||||||
sizeGroup.writeEntry("DialogHeight", dialog->height());
|
sizeGroup.writeEntry("DialogHeight", dialog->height());
|
||||||
sizeGroup.writeEntry("DialogWidth", dialog->width());
|
sizeGroup.writeEntry("DialogWidth", dialog->width());
|
||||||
|
|
||||||
|
updateDialogPosition();
|
||||||
|
|
||||||
emit q->configNeedsSaving();
|
emit q->configNeedsSaving();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user