aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamarque V. Souza <lamarque@gmail.com>2011-05-10 00:22:02 (GMT)
committerLamarque V. Souza <lamarque@gmail.com>2011-05-10 00:25:33 (GMT)
commit0624d4f3d4ba82a04beea682f79982030e63259c (patch)
tree8c174f880b7cd385fb5478f4b78320f3995630b2
parenta2d4c3ebdf7137f3543c88245f0bfd3dba308ebf (diff)
Adjust StackDialog's custom position after a resize event. The position is
not saved, so next time it will appear at the same position where it was before the resize event. BUG: 271703 FIXED-IN: 4.6.4 (cherry picked from commit 9d4f1f9d3271ab7a1e4238882c10c5ed9e669918)
-rw-r--r--plasma/generic/applets/notifications/ui/stackdialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plasma/generic/applets/notifications/ui/stackdialog.cpp b/plasma/generic/applets/notifications/ui/stackdialog.cpp
index 1eb28b6..0d3f6a0 100644
--- a/plasma/generic/applets/notifications/ui/stackdialog.cpp
+++ b/plasma/generic/applets/notifications/ui/stackdialog.cpp
@@ -237,7 +237,9 @@ void StackDialog::resizeEvent(QResizeEvent *event)
Q_UNUSED(event)
adjustWindowToTilePos();
Plasma::Dialog::resizeEvent(event);
- if (!m_hasCustomPosition) {
+ if (m_hasCustomPosition) {
+ adjustPosition(pos());
+ } else {
move(m_applet->containment()->corona()->popupPosition(m_applet, size()));
}
}