0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-10-01 03:29:49 +03:00

Layout spacing has been fixed

This commit is contained in:
Arin Alexander
2019-02-06 18:41:56 +03:00
parent 505f1398e3
commit 35cd54919a
3 changed files with 7 additions and 7 deletions

View File

@@ -51,7 +51,7 @@ void VerticalLayout::updateLayoutSize()
}
}
if (w>0) setWidth(w+spaceBorder*2);
setHeight(h + layoutSpacing() *(visibleItemCount-1));
setHeight(h + layoutSpacingMM() *(visibleItemCount-1));
}
void VerticalLayout::relocateChildren()
@@ -69,7 +69,7 @@ void VerticalLayout::relocateChildren()
foreach (BaseDesignIntf* item, layoutsChildren()) {
if (item->isVisible() || itemMode() == DesignMode){
item->setPos(spaceBorder, curY);
curY+=item->height() + layoutSpacing();
curY+=item->height() + layoutSpacingMM();
item->setWidth(width() - (spaceBorder * 2));
}
}
@@ -163,7 +163,7 @@ void VerticalLayout::divideSpace()
}
}
itemsSumSize += layoutSpacing() * (visibleItemsCount - 1);
itemsSumSize += layoutSpacingMM() * (visibleItemsCount - 1);
qreal delta = (height() - (itemsSumSize+spaceBorder*2)) / (visibleItemsCount!=0 ? visibleItemsCount : 1);
for (int i=0; i<layoutsChildren().size(); ++i){