From a93b6f8e07da6bc94a52c564caac19fe3ebdda44 Mon Sep 17 00:00:00 2001 From: Andre Duffeck Date: Thu, 22 Nov 2007 06:00:02 +0000 Subject: [PATCH] startPos has to return absolute positions svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=739868 --- layouts/boxlayout.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/boxlayout.cpp b/layouts/boxlayout.cpp index a1c2e715f..ba030a7e6 100644 --- a/layouts/boxlayout.cpp +++ b/layouts/boxlayout.cpp @@ -84,13 +84,13 @@ public: { switch ( direction ) { case LeftToRight: - return q->margin(LeftMargin); + return geometry.left() + q->margin(LeftMargin); case TopToBottom: - return q->margin(TopMargin); + return geometry.top() + q->margin(TopMargin); case RightToLeft: - return geometry.width() - q->margin(RightMargin); + return geometry.right() - q->margin(RightMargin); case BottomToTop: - return geometry.height() - q->margin(BottomMargin); + return geometry.bottom() - q->margin(BottomMargin); default: Q_ASSERT(false); return 0;