the margins should be constant; it's a grid.
svn path=/trunk/KDE/kdelibs/; revision=891718
This commit is contained in:
parent
54340e9701
commit
5055bf7bf0
@ -1758,12 +1758,6 @@ void ContainmentPrivate::positionContainments()
|
|||||||
containment->setPos(x, y);
|
containment->setPos(x, y);
|
||||||
//kDebug() << ++count << "setting to" << x << y;
|
//kDebug() << ++count << "setting to" << x << y;
|
||||||
|
|
||||||
if (containment->toolBoxItem()) {
|
|
||||||
toolBoxMargin = TOOLBOX_MARGIN;
|
|
||||||
} else {
|
|
||||||
toolBoxMargin = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int height = containment->size().height();
|
int height = containment->size().height();
|
||||||
if (height > rowHeight) {
|
if (height > rowHeight) {
|
||||||
rowHeight = height;
|
rowHeight = height;
|
||||||
@ -1774,7 +1768,7 @@ void ContainmentPrivate::positionContainments()
|
|||||||
if (column == CONTAINMENT_COLUMNS) {
|
if (column == CONTAINMENT_COLUMNS) {
|
||||||
column = 0;
|
column = 0;
|
||||||
x = 0;
|
x = 0;
|
||||||
y += rowHeight + INTER_CONTAINMENT_MARGIN + toolBoxMargin;
|
y += rowHeight + INTER_CONTAINMENT_MARGIN + TOOLBOX_MARGIN;
|
||||||
rowHeight = 0;
|
rowHeight = 0;
|
||||||
} else {
|
} else {
|
||||||
x += containment->size().width() + INTER_CONTAINMENT_MARGIN;
|
x += containment->size().width() + INTER_CONTAINMENT_MARGIN;
|
||||||
|
Loading…
Reference in New Issue
Block a user