Removed obsolete call to updateDialogPosition, and use this function in dialogSizeChanged() for consistent dialog position. This solves the problem of the dialog being moved twice when the size of the widget changes.
svn path=/trunk/KDE/kdelibs/; revision=892689
This commit is contained in:
parent
8994cc5ad6
commit
5ba015fa56
@ -357,7 +357,6 @@ void PopupApplet::showPopup(uint popupDuration)
|
||||
{
|
||||
if (d->dialog && (formFactor() == Horizontal || formFactor() == Vertical)) {
|
||||
d->dialog->show();
|
||||
d->updateDialogPosition();
|
||||
KWindowSystem::setState(d->dialog->winId(), NET::SkipTaskbar | NET::SkipPager);
|
||||
|
||||
if (d->timer) {
|
||||
@ -476,8 +475,7 @@ void PopupAppletPrivate::dialogSizeChanged()
|
||||
{
|
||||
//Reposition the dialog
|
||||
if (dialog) {
|
||||
//dialog->updateGeometry();
|
||||
dialog->move(q->popupPosition(dialog->size()));
|
||||
updateDialogPosition();
|
||||
|
||||
KConfigGroup sizeGroup = q->config();
|
||||
sizeGroup = KConfigGroup(&sizeGroup, "PopupApplet");
|
||||
|
Loading…
Reference in New Issue
Block a user