@syncfusion/ej2-pdf-export 26.2.11 → 26.2.14

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.
@@ -23095,10 +23095,8 @@ var PdfPaddings = /** @__PURE__ @class */ (function () {
23095
23095
  */
23096
23096
  this.hasBottomPad = false;
23097
23097
  if (typeof left === 'undefined') {
23098
- //5.76 and 0 are taken from ms-word default table margins.
23099
- this.leftPad = this.rightPad = 5.76;
23100
23098
  //0.5 is set for top and bottom by default.
23101
- this.bottomPad = this.topPad = 0.5;
23099
+ this.bottomPad = this.topPad = this.leftPad = this.rightPad = 0.5;
23102
23100
  }
23103
23101
  else {
23104
23102
  this.leftPad = left;
@@ -29637,10 +29635,6 @@ var PdfGridStyle = /** @__PURE__ @class */ (function (_super) {
29637
29635
  */
29638
29636
  function PdfGridStyle() {
29639
29637
  var _this = _super.call(this) || this;
29640
- /**
29641
- * @private
29642
- */
29643
- _this._isDefaultPadding = false;
29644
29638
  _this.gridBorderOverlapStyle = PdfBorderOverlapStyle.Overlap;
29645
29639
  _this.bAllowHorizontalOverflow = false;
29646
29640
  _this.gridHorizontalOverflowType = PdfHorizontalOverflowType.LastPage;
@@ -29700,7 +29694,6 @@ var PdfGridStyle = /** @__PURE__ @class */ (function (_super) {
29700
29694
  get: function () {
29701
29695
  if (typeof this.gridCellPadding === 'undefined') {
29702
29696
  this.gridCellPadding = new PdfPaddings();
29703
- this._isDefaultPadding = true;
29704
29697
  }
29705
29698
  return this.gridCellPadding;
29706
29699
  },
@@ -29712,7 +29705,6 @@ var PdfGridStyle = /** @__PURE__ @class */ (function (_super) {
29712
29705
  else {
29713
29706
  this.gridCellPadding = value;
29714
29707
  }
29715
- this._isDefaultPadding = false;
29716
29708
  },
29717
29709
  enumerable: true,
29718
29710
  configurable: true
@@ -33267,7 +33259,11 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
33267
33259
  var cell = row.cells.getCell(c);
33268
33260
  var cellWidth = 0;
33269
33261
  var totalwidth = 0;
33262
+ var childGridCell = void 0;
33270
33263
  if (cell.value instanceof PdfGrid) {
33264
+ if (!childGridCell) {
33265
+ childGridCell = cell;
33266
+ }
33271
33267
  for (var i_6 = 0; i_6 < cell.value.columns.count; i_6++) {
33272
33268
  totalwidth += cell.value.columns.getColumn(i_6).columnWidth;
33273
33269
  }
@@ -33281,13 +33277,16 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
33281
33277
  }
33282
33278
  else
33283
33279
  cellWidth = Math.max(totalwidth, row.grid.columns.getColumn(c).width);
33284
- if (!this.Grid.style._isDefaultPadding) {
33285
- var bottomPadding = this.Grid.style.cellPadding.top + this.Grid.style.cellPadding.bottom;
33286
- bottomPadding += cell.style.borders.top.width + cell.style.borders.bottom.width;
33287
- if ((height + bottomPadding) < pageGraphics.clientSize.height) {
33288
- height += bottomPadding;
33289
- this.currentBounds.y += bottomPadding;
33290
- }
33280
+ var bottomPadding = void 0;
33281
+ if (childGridCell && childGridCell.style && childGridCell.style.cellPadding) {
33282
+ bottomPadding = childGridCell.style.cellPadding.bottom;
33283
+ }
33284
+ else {
33285
+ bottomPadding = this.Grid.style.cellPadding.bottom;
33286
+ }
33287
+ if (typeof bottomPadding === 'number' && (height + bottomPadding) < pageGraphics.clientSize.height) {
33288
+ height += bottomPadding;
33289
+ this.currentBounds.y += bottomPadding;
33291
33290
  }
33292
33291
  cell.drawCellBorders(pageGraphics, new RectangleF(location_2, new SizeF(cellWidth, height)));
33293
33292
  var rowWidth = this.Grid.rows.getRow(this.Grid.rows.count - 1).width;