@syncfusion/ej2-pdf-export 27.1.50 → 27.1.51

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.
@@ -30308,19 +30308,31 @@ var PdfGridCell = /** @__PURE__ @class */ (function () {
30308
30308
  var returnBounds = new RectangleF(bounds.x, bounds.y, bounds.width, bounds.height);
30309
30309
  if (!(this.objectValue instanceof PdfGrid)) {
30310
30310
  if (typeof this.style.cellPadding === 'undefined' || this.style.cellPadding == null) {
30311
- returnBounds.x += this.gridRow.grid.style.cellPadding.left + this.cellStyle.borders.left.width;
30312
- returnBounds.y += this.gridRow.grid.style.cellPadding.top + this.cellStyle.borders.top.width;
30311
+ returnBounds.x += this.gridRow.grid.style.cellPadding.left;
30312
+ returnBounds.y += this.gridRow.grid.style.cellPadding.top;
30313
30313
  returnBounds.width -= (this.gridRow.grid.style.cellPadding.right + this.gridRow.grid.style.cellPadding.left);
30314
30314
  returnBounds.height -= (this.gridRow.grid.style.cellPadding.bottom + this.gridRow.grid.style.cellPadding.top);
30315
- returnBounds.height -= (this.cellStyle.borders.top.width + this.cellStyle.borders.bottom.width);
30316
30315
  }
30317
30316
  else {
30318
- returnBounds.x += this.style.cellPadding.left + this.cellStyle.borders.left.width;
30319
- returnBounds.y += this.style.cellPadding.top + this.cellStyle.borders.top.width;
30317
+ returnBounds.x += this.style.cellPadding.left;
30318
+ returnBounds.y += this.style.cellPadding.top;
30320
30319
  returnBounds.width -= (this.style.cellPadding.right + this.style.cellPadding.left);
30321
- returnBounds.width -= (this.cellStyle.borders.left.width + this.cellStyle.borders.right.width);
30322
30320
  returnBounds.height -= (this.style.cellPadding.bottom + this.style.cellPadding.top);
30323
- returnBounds.height -= (this.cellStyle.borders.top.width + this.cellStyle.borders.bottom.width);
30321
+ if (this.rowSpan === 1) {
30322
+ returnBounds.width -= (this.style.borders.left.width);
30323
+ }
30324
+ }
30325
+ if (typeof this.style.borders === 'undefined' || this.style.borders == null) {
30326
+ returnBounds.x += this.gridRow.style.border.left.width;
30327
+ returnBounds.y += this.gridRow.style.border.top.width;
30328
+ returnBounds.width -= (this.gridRow.style.border.left.width + this.gridRow.style.border.right.width);
30329
+ returnBounds.height -= (this.gridRow.style.border.top.width + this.gridRow.style.border.bottom.width);
30330
+ }
30331
+ else {
30332
+ returnBounds.x += this.style.borders.left.width;
30333
+ returnBounds.y += this.style.borders.top.width;
30334
+ returnBounds.width -= (this.style.borders.left.width + this.style.borders.right.width);
30335
+ returnBounds.height -= (this.style.borders.top.width + this.style.borders.bottom.width);
30324
30336
  if (this.rowSpan === 1) {
30325
30337
  returnBounds.width -= (this.style.borders.left.width);
30326
30338
  }