swap the magic number for a constant
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=873689
This commit is contained in:
parent
25da9776f7
commit
3fb4975896
@ -1796,8 +1796,7 @@ void ContainmentPrivate::positionContainment()
|
||||
}
|
||||
}
|
||||
|
||||
//this magic number (4) is the number of columns to try before going to the next row
|
||||
width = (width + INTER_CONTAINMENT_MARGIN) * 4;
|
||||
width = (width + INTER_CONTAINMENT_MARGIN) * CONTAINMENT_COLUMNS;
|
||||
height += INTER_CONTAINMENT_MARGIN;
|
||||
|
||||
// a mildly naive "find the first slot" approach
|
||||
|
@ -22,6 +22,7 @@
|
||||
#define CONTAINMENT_P_H
|
||||
|
||||
static const int INTER_CONTAINMENT_MARGIN = 6;
|
||||
static const int CONTAINMENT_COLUMNS = 4;
|
||||
static const int VERTICAL_STACKING_OFFSET = 10000;
|
||||
|
||||
namespace Plasma
|
||||
|
Loading…
Reference in New Issue
Block a user