Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > media > main-testing-src > by-pkgid > 69501fee79f575b9818fcbd4bf2bb6c4 > files > 15

kdelibs4-4.2.4-0.2mdv2009.0.src.rpm

--- plasma/containment.cpp~	2009-02-16 23:13:50.000000000 +0100
+++ plasma/containment.cpp	2009-02-17 00:08:43.000000000 +0100
@@ -1845,7 +1845,7 @@
 
     //TODO: research how non-Horizontal, non-Vertical (e.g. Planar) panels behave here
     bool horiz = q->formFactor() == Plasma::Horizontal;
-    qreal bottom = horiz ? 0 : VERTICAL_STACKING_OFFSET;
+    qreal bottom = horiz ? -HORIZONTAL_STACKING_OFFSET : VERTICAL_STACKING_OFFSET;    
     qreal lastHeight = 0;
 
     // this should be ok for small numbers of panels, but if we ever end
@@ -1861,7 +1861,7 @@
         }
 
         if (horiz) {
-            qreal y = other->pos().y();
+            qreal y = other->pos().y() - HORIZONTAL_STACKING_OFFSET;
             if (y < bottom) {
                 lastHeight = other->size().height();
                 bottom = y;
--- plasma/private/containment_p.h~	2008-12-21 21:21:03.000000000 +0100
+++ plasma/private/containment_p.h	2009-02-17 00:11:03.000000000 +0100
@@ -27,6 +27,7 @@
 static const int TOOLBOX_MARGIN = 150;
 static const int CONTAINMENT_COLUMNS = 2;
 static const int VERTICAL_STACKING_OFFSET = 10000;
+static const int HORIZONTAL_STACKING_OFFSET = 900;
 
 namespace Plasma
 {