revert r#176280 as it's just a work around for the real problem

svn path=/trunk/KDE/kdelibs/; revision=928670
This commit is contained in:
Aaron J. Seigo 2009-02-19 19:47:24 +00:00
parent d2446a59fc
commit 1f6e98c957
2 changed files with 2 additions and 3 deletions

View File

@ -1852,7 +1852,7 @@ void ContainmentPrivate::positionPanel(bool force)
//TODO: research how non-Horizontal, non-Vertical (e.g. Planar) panels behave here
bool horiz = q->formFactor() == Plasma::Horizontal;
qreal bottom = horiz ? -HORIZONTAL_STACKING_OFFSET : VERTICAL_STACKING_OFFSET;
qreal bottom = horiz ? 0 : VERTICAL_STACKING_OFFSET;
qreal lastHeight = 0;
// this should be ok for small numbers of panels, but if we ever end
@ -1868,7 +1868,7 @@ void ContainmentPrivate::positionPanel(bool force)
}
if (horiz) {
qreal y = other->pos().y() - HORIZONTAL_STACKING_OFFSET;
qreal y = other->pos().y();
if (y < bottom) {
lastHeight = other->size().height();
bottom = y;

View File

@ -27,7 +27,6 @@ static const int INTER_CONTAINMENT_MARGIN = 6;
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
{