[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/applets/pager
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2009-01-12 20:59:19
Message-ID: 1231793959.521724.3715.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 910229 by aseigo:
add the margins to the width/height; we do those margins, only in the mouse \
interaction we don't want them (re-)added BUG:180440
M +2 -2 pager.cpp
--- trunk/KDE/kdebase/workspace/plasma/applets/pager/pager.cpp #910228:910229
@@ -268,12 +268,12 @@
qreal itemWidth;
if (formFactor() == Plasma::Vertical) {
- itemWidth = (contentsRect().width() - padding * (columns - 1)) / columns;
+ itemWidth = (contentsRect().width() - leftMargin - rightMargin - 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() - padding * (rows - 1)) / rows;
+ itemHeight = (contentsRect().height() - topMargin - bottomMargin - 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