@shival99/z-ui 2.6.1 → 2.6.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.
@@ -4467,7 +4467,10 @@ class ZTableCellPinPipe {
4467
4467
  return [cell];
4468
4468
  }
4469
4469
  const columnConfig = findColumnConfig(cell.column.id, columns);
4470
- const colSpan = getBodyColSpan(columnConfig, cell.getContext()) ?? 1;
4470
+ // Must use the EFFECTIVE (pinning-shrunk) colSpan, not the raw configured one — otherwise a
4471
+ // cell whose colSpan run pinning already broke up still "covers" cells further away that
4472
+ // happen to be the true last-pinned column, duplicating the sticky boundary shadow/border.
4473
+ const colSpan = calculateCellColSpan(cell, columnConfig, bodyCells) ?? 1;
4471
4474
  return bodyCells.slice(cellIndex, cellIndex + Math.max(colSpan, 1));
4472
4475
  }
4473
4476
  _pinDirection(header) {
@@ -5071,8 +5074,11 @@ class ZTablePinningStylesPipe {
5071
5074
  _cellWidthWithColspan(cell, allCells, cellIndex, columns, domWidthMap) {
5072
5075
  const getW = (c) => this._colWidth(c.column.id, c.column, domWidthMap);
5073
5076
  const config = findColumnConfig(cell.column.id, columns);
5074
- const colSpan = getBodyColSpan(config, cell.getContext());
5075
- if (colSpan && colSpan > 1) {
5077
+ // Must use the EFFECTIVE (pinning-shrunk) colSpan, not the raw configured one — otherwise this
5078
+ // sums widths for sibling cells that pinning has moved elsewhere, rendering the cell wider than
5079
+ // its actual `colspan` attribute and overlapping/pushing whatever now sits next to it.
5080
+ const colSpan = calculateCellColSpan(cell, config, allCells) ?? 1;
5081
+ if (colSpan > 1) {
5076
5082
  let w = getW(cell);
5077
5083
  for (let j = 1; j < colSpan && cellIndex + j < allCells.length; j++) {
5078
5084
  w += getW(allCells[cellIndex + j]);