From kde-commits Tue Aug 04 01:35:56 2009 From: Peter Pan Date: Tue, 04 Aug 2009 01:35:56 +0000 To: kde-commits Subject: KDE/kdebase/workspace/plasma/containments/panel Message-Id: <1249349756.721002.2474.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=124934982303041 SVN commit 1006608 by peterpan: Don't change the size of panel when we change the plasma theme or enable/disable window effects. BUG:184905 M +0 -17 panel.cpp --- trunk/KDE/kdebase/workspace/plasma/containments/panel/panel.cpp #1006607:1006608 @@ -550,23 +550,6 @@ //invalidate the layout and set again if (layout()) { - switch (location()) { - case LeftEdge: - rightWidth = qMin(rightWidth, qMax(qreal(1), size().width() - KIconLoader::SizeMedium)); - break; - case RightEdge: - leftWidth = qMin(leftWidth, qMax(qreal(1), size().width() - KIconLoader::SizeMedium)); - break; - case TopEdge: - bottomHeight = qMin(bottomHeight, qMax(qreal(1), size().height() - KIconLoader::SizeMedium)); - break; - case BottomEdge: - topHeight = qMin(topHeight, qMax(qreal(1), size().height() - KIconLoader::SizeMedium)); - break; - default: - break; - } - qreal oldLeft = leftWidth; qreal oldTop = topHeight; qreal oldRight = rightWidth;