@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
|
@@ -29817,22 +29817,25 @@ class PdfGridLayouter extends ElementLayouter {
|
|
|
29817
29817
|
else {
|
|
29818
29818
|
font = PdfDocument.defaultFont;
|
|
29819
29819
|
}
|
|
29820
|
-
this.remainderText =
|
|
29821
|
-
let width =
|
|
29822
|
-
|
|
29823
|
-
|
|
29820
|
+
this.remainderText = cell.value;
|
|
29821
|
+
let width = cell.width;
|
|
29822
|
+
const column = grid.columns.getColumn(i);
|
|
29823
|
+
if (column.isCustomWidth && cell.width > column.width) {
|
|
29824
|
+
width = column.width;
|
|
29824
29825
|
}
|
|
29825
|
-
this.slr = layouter.layout(
|
|
29826
|
+
this.slr = layouter.layout(cell.value, font, cell.stringFormat, new SizeF(width, currentHeight), false, this.currentPageBounds);
|
|
29826
29827
|
let height = this.slr.actualSize.height;
|
|
29827
|
-
if (height
|
|
29828
|
+
if (cell.value !== '' && height === 0) {
|
|
29828
29829
|
isFit = false;
|
|
29829
29830
|
break;
|
|
29830
29831
|
}
|
|
29831
|
-
if (
|
|
29832
|
-
height += (
|
|
29833
|
-
|
|
29834
|
-
|
|
29835
|
-
|
|
29832
|
+
if (cell.style !== null && cell.style.borders !== null && cell.style.borders.top !== null && cell.style.borders.bottom !== null) {
|
|
29833
|
+
height += (cell.style.borders.top.width + cell.style.borders.bottom.width) * 2;
|
|
29834
|
+
}
|
|
29835
|
+
if (this.slr.lineCount > 1 && cell.stringFormat != null && cell.stringFormat.lineSpacing != 0) {
|
|
29836
|
+
height += (this.slr.lineCount - 1) * (cell.style.stringFormat.lineSpacing);
|
|
29837
|
+
}
|
|
29838
|
+
if (cell.style.cellPadding === null) {
|
|
29836
29839
|
height += (grid.style.cellPadding.top + grid.style.cellPadding.bottom);
|
|
29837
29840
|
}
|
|
29838
29841
|
else {
|