[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/applets/pager
From: Robin Pedersen <robinpeder () gmail ! com>
Date: 2009-02-03 11:11:33
Message-ID: 1233659493.586332.3678.nullmailer () svn ! kde ! org
[Download RAW message or body]
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) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic