Skip to content

Update Grid Row Cell Border Logic for Pooling #9001

@tobiu

Description

@tobiu

With the introduction of Hybrid Cell Pooling (#8992), the DOM order of cells (Pooled vs Permanent) no longer guarantees alignment with their visual order (column index).
Consequently, the CSS rule &:last-child on .neo-grid-cell incorrectly targets the last rendered DOM node (which might be a pooled cell in the middle of the grid, or a permanent cell rendered last) instead of the visually last column. This results in incorrect right-borders.

Solution:

  1. Update Neo.grid.Row to calculate which column is the last visible column and apply a specific CSS class (e.g., neo-last-column) to its corresponding cell.
  2. Update resources/scss/src/grid/Body.scss to use .neo-last-column instead of &:last-child for removing the right border.

Note: This logic must account for both pooled and permanent cells.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions