@syncfusion/ej2-pdf-export 25.1.35 → 25.2.3

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.
@@ -30008,11 +30008,11 @@ class PdfGridLayouter extends ElementLayouter {
30008
30008
  this.currentBounds.y = recalHeight;
30009
30009
  //this.currentBounds.y = row.NestedGridLayoutResult.bounds.height;
30010
30010
  if (startPage != this.currentPage) {
30011
- let secion = this.currentPage.section;
30012
- let startIndex = secion.indexOf(startPage) + 1;
30013
- let endIndex = secion.indexOf(this.currentPage);
30011
+ let section = this.currentPage.section;
30012
+ let startIndex = section.indexOf(startPage) + 1;
30013
+ let endIndex = section.indexOf(this.currentPage);
30014
30014
  for (let page = startIndex; page < endIndex + 1; page++) {
30015
- let pageGraphics = this.currentPage.graphics;
30015
+ let pageGraphics = section.getPages()[page].graphics;
30016
30016
  let location = new PointF(format.paginateBounds.x, format.paginateBounds.y);
30017
30017
  let height = page == endIndex ? (row.NestedGridLayoutResult.bounds.height - param.bounds.y) :
30018
30018
  (this.currentBounds.height - location.y);
@@ -30034,14 +30034,14 @@ class PdfGridLayouter extends ElementLayouter {
30034
30034
  else {
30035
30035
  totalwidth = cell.width;
30036
30036
  }
30037
- // if (cell.columnSpan > 1)
30038
- // {
30039
- // for (; c < cell.columnSpan; c++)
30040
- // cellWidth += row.grid.columns.getColumn(c).width;
30041
- // }
30042
- // else
30043
- cellWidth = Math.max(totalwidth, row.grid.columns.getColumn(c).width);
30037
+ if (cell.columnSpan > 1) {
30038
+ for (; c < cell.columnSpan; c++)
30039
+ cellWidth += row.grid.columns.getColumn(c).width;
30040
+ }
30041
+ else
30042
+ cellWidth = Math.max(totalwidth, row.grid.columns.getColumn(c).width);
30044
30043
  cell.drawCellBorders(pageGraphics, new RectangleF(location, new SizeF(cellWidth, height)));
30044
+ cell.drawCellBorders(pageGraphics, new RectangleF(location, new SizeF(this.Grid.rows.getRow(this.Grid.rows.count - 1).width, height)));
30045
30045
  location.x += cellWidth;
30046
30046
  c += (cell.columnSpan - 1);
30047
30047
  }