From 5055bf7bf0eb00bfd0e52550c107f75fbdf59539 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 2 Dec 2008 18:42:06 +0000 Subject: [PATCH] the margins should be constant; it's a grid. svn path=/trunk/KDE/kdelibs/; revision=891718 --- containment.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/containment.cpp b/containment.cpp index e60124129..2095b0a20 100644 --- a/containment.cpp +++ b/containment.cpp @@ -1758,12 +1758,6 @@ void ContainmentPrivate::positionContainments() containment->setPos(x, y); //kDebug() << ++count << "setting to" << x << y; - if (containment->toolBoxItem()) { - toolBoxMargin = TOOLBOX_MARGIN; - } else { - toolBoxMargin = 0; - } - int height = containment->size().height(); if (height > rowHeight) { rowHeight = height; @@ -1774,7 +1768,7 @@ void ContainmentPrivate::positionContainments() if (column == CONTAINMENT_COLUMNS) { column = 0; x = 0; - y += rowHeight + INTER_CONTAINMENT_MARGIN + toolBoxMargin; + y += rowHeight + INTER_CONTAINMENT_MARGIN + TOOLBOX_MARGIN; rowHeight = 0; } else { x += containment->size().width() + INTER_CONTAINMENT_MARGIN;