@pepperi-addons/ngx-lib 0.2.51-beta.5 → 0.2.51-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/pepperi-addons-ngx-lib-form.umd.js +7 -7
- package/bundles/pepperi-addons-ngx-lib-form.umd.js.map +1 -1
- package/esm2015/form/internal-page.component.js +8 -8
- package/fesm2015/pepperi-addons-ngx-lib-form.js +7 -7
- package/fesm2015/pepperi-addons-ngx-lib-form.js.map +1 -1
- package/package.json +1 -1
|
@@ -2739,19 +2739,19 @@
|
|
|
2739
2739
|
var maxRow = Math.max.apply(Math, __spreadArray([], __read(_this.uiControl.ControlFields.map(function (f) {
|
|
2740
2740
|
return f.Layout.Y + f.Layout.Height;
|
|
2741
2741
|
}))));
|
|
2742
|
-
console.log("maxRow - " + maxRow);
|
|
2743
2742
|
// * 16 convert rem to pixel
|
|
2744
2743
|
var cardRowsHeight = _this.customizationService.calculateCardRowsHeight(maxRow) * 16;
|
|
2745
|
-
|
|
2744
|
+
// maxRow * 24 + 60 - 24 for each row in card + 60 for the padding of each card.
|
|
2745
|
+
// const rowSpanToAdd = Math.floor(childrenCount * ((cardRowsHeight + 56) / formRowHeight) + rowsToAdd);
|
|
2746
2746
|
// + 16 is the 1rem margin outside card.
|
|
2747
|
-
var rowSpanToAdd = (childrenCount * (cardRowsHeight + 16))
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
console.log("childrenCount - " + childrenCount);
|
|
2751
|
-
console.log("rowSpanToAdd - " + rowSpanToAdd);
|
|
2747
|
+
var rowSpanToAdd = (childrenCount * (cardRowsHeight + 16)) /
|
|
2748
|
+
formRowHeight +
|
|
2749
|
+
rowsToAdd;
|
|
2752
2750
|
_this.field.rowSpan = rowSpanToAdd;
|
|
2753
2751
|
}
|
|
2754
2752
|
else {
|
|
2753
|
+
// const tableRowsHeight = this.customizationService.calculateTableRowsHeight(childrenCount) * 16;
|
|
2754
|
+
// this.field.rowSpan = Math.ceil((tableRowsHeight + (rowsToAdd * 40)) / formRowHeight);
|
|
2755
2755
|
// * 16 convert rem to pixel
|
|
2756
2756
|
var rowsToAddHeight = _this.customizationService.calculateTableRowsHeight(rowsToAdd, false) * 16;
|
|
2757
2757
|
var tableRowsHeight = _this.customizationService.calculateTableRowsHeight(childrenCount) * 16;
|