SVN commit 920594 by rpedersen: Fix pager plasmoid resizing bug The problem was that the rect returned be QGraphicsWidget::contentsRect() was assumed to include the margins, which it doesn't. Thus, subtracting the margins from the rect resulted in the size being slightly smaller each time it was recalculated. BUG: 182487 M +2 -2 pager.cpp --- trunk/KDE/kdebase/workspace/plasma/applets/pager/pager.cpp #920593:920594 @@ -275,12 +275,12 @@ qreal itemWidth; if (formFactor() == Plasma::Vertical) { - itemWidth = (contentsRect().width() - leftMargin - rightMargin - padding * (columns - 1)) / columns; + itemWidth = (contentsRect().width() - padding * (columns - 1)) / columns; m_widthScaleFactor = itemWidth / Kephal::ScreenUtils::desktopGeometry().width(); itemHeight = Kephal::ScreenUtils::desktopGeometry().height() * m_widthScaleFactor; m_heightScaleFactor = m_widthScaleFactor; } else { - itemHeight = (contentsRect().height() - topMargin - bottomMargin - padding * (rows - 1)) / rows; + itemHeight = (contentsRect().height() - padding * (rows - 1)) / rows; m_heightScaleFactor = itemHeight / Kephal::ScreenUtils::desktopGeometry().height(); itemWidth = Kephal::ScreenUtils::desktopGeometry().width() * m_heightScaleFactor; if (m_displayedText == Name) {