@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.
@@ -33030,22 +33030,25 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
33030
33030
  else {
33031
33031
  font = PdfDocument.defaultFont;
33032
33032
  }
33033
- this.remainderText = gridRow.cells.getCell(i).value;
33034
- var width = gridRow.cells.getCell(i).width;
33035
- if (grid.columns.getColumn(i).isCustomWidth && gridRow.cells.getCell(i).width > grid.columns.getColumn(i).width) {
33036
- width = grid.columns.getColumn(i).width;
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(gridRow.cells.getCell(i).value, font, gridRow.cells.getCell(i).stringFormat, new SizeF(width, currentHeight), false, this.currentPageBounds);
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 == 0) {
33041
+ if (cell.value !== '' && height === 0) {
33041
33042
  isFit = false;
33042
33043
  break;
33043
33044
  }
33044
- if (gridRow.cells.getCell(i).style != null && gridRow.cells.getCell(i).style.borders != null && gridRow.cells.getCell(i).style.borders.top != null && gridRow.cells.getCell(i).style.borders.bottom != null)
33045
- height += (gridRow.cells.getCell(i).style.borders.top.width + gridRow.cells.getCell(i).style.borders.bottom.width) * 2;
33046
- if (this.slr.lineCount > 1 && gridRow.cells.getCell(i).stringFormat != null && gridRow.cells.getCell(i).stringFormat.lineSpacing != 0)
33047
- height += (this.slr.lineCount - 1) * (gridRow.cells.getCell(i).style.stringFormat.lineSpacing);
33048
- if (gridRow.cells.getCell(i).style.cellPadding == null) {
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 {