From kde-commits Fri Dec 17 18:26:56 2010 From: =?utf-8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Fri, 17 Dec 2010 18:26:56 +0000 To: kde-commits Subject: KDE/kdebase/workspace/plasma/generic/applets/notifications/ui Message-Id: <20101217182656.D9A47AC8A8 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129261047213560 SVN commit 1207380 by ereslibre: Only resize height. This way if we have a notification stack snapped to the right margin, it will always keep snapped M +2 -2 notificationstack.cpp --- trunk/KDE/kdebase/workspace/plasma/generic/applets/notifications/ui/notificationstack.cpp #1207379:1207380 @@ -99,7 +99,7 @@ m_mainLayout->insertItem(0, notificationWidget); m_mainLayout->activate(); updateGeometry(); - resize(effectiveSizeHint(Qt::MinimumSize)); + resize(size().width(), effectiveSizeHint(Qt::MinimumSize).height()); emit updateRequested(); } @@ -131,7 +131,7 @@ } updateGeometry(); - resize(sizeHint(Qt::MinimumSize, QSizeF())); + resize(size().width(), sizeHint(Qt::MinimumSize, QSizeF()).height()); emit updateRequested(); }