@syncfusion/ej2-pdf-export 21.2.8 → 21.2.10
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/CHANGELOG.md +8 -0
- package/dist/ej2-pdf-export.min.js +2 -2
- package/dist/ej2-pdf-export.umd.min.js +2 -2
- package/dist/ej2-pdf-export.umd.min.js.map +1 -1
- package/dist/es6/ej2-pdf-export.es2015.js +14 -11
- package/dist/es6/ej2-pdf-export.es2015.js.map +1 -1
- package/dist/es6/ej2-pdf-export.es5.js +14 -11
- package/dist/es6/ej2-pdf-export.es5.js.map +1 -1
- package/dist/global/ej2-pdf-export.min.js +2 -2
- package/dist/global/ej2-pdf-export.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +5 -5
- package/src/implementation/structured-elements/grid/layout/grid-layouter.js +14 -11
|
@@ -33030,22 +33030,25 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
|
|
|
33030
33030
|
else {
|
|
33031
33031
|
font = PdfDocument.defaultFont;
|
|
33032
33032
|
}
|
|
33033
|
-
this.remainderText =
|
|
33034
|
-
var width =
|
|
33035
|
-
|
|
33036
|
-
|
|
33033
|
+
this.remainderText = cell.value;
|
|
33034
|
+
var width = cell.width;
|
|
33035
|
+
var column = grid.columns.getColumn(i);
|
|
33036
|
+
if (column.isCustomWidth && cell.width > column.width) {
|
|
33037
|
+
width = column.width;
|
|
33037
33038
|
}
|
|
33038
|
-
this.slr = layouter.layout(
|
|
33039
|
+
this.slr = layouter.layout(cell.value, font, cell.stringFormat, new SizeF(width, currentHeight), false, this.currentPageBounds);
|
|
33039
33040
|
var height = this.slr.actualSize.height;
|
|
33040
|
-
if (height
|
|
33041
|
+
if (cell.value !== '' && height === 0) {
|
|
33041
33042
|
isFit = false;
|
|
33042
33043
|
break;
|
|
33043
33044
|
}
|
|
33044
|
-
if (
|
|
33045
|
-
height += (
|
|
33046
|
-
|
|
33047
|
-
|
|
33048
|
-
|
|
33045
|
+
if (cell.style !== null && cell.style.borders !== null && cell.style.borders.top !== null && cell.style.borders.bottom !== null) {
|
|
33046
|
+
height += (cell.style.borders.top.width + cell.style.borders.bottom.width) * 2;
|
|
33047
|
+
}
|
|
33048
|
+
if (this.slr.lineCount > 1 && cell.stringFormat != null && cell.stringFormat.lineSpacing != 0) {
|
|
33049
|
+
height += (this.slr.lineCount - 1) * (cell.style.stringFormat.lineSpacing);
|
|
33050
|
+
}
|
|
33051
|
+
if (cell.style.cellPadding === null) {
|
|
33049
33052
|
height += (grid.style.cellPadding.top + grid.style.cellPadding.bottom);
|
|
33050
33053
|
}
|
|
33051
33054
|
else {
|