LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtNov 14, 2026, 12:45 AM
updatedAtNov 17, 2026, 3:11 PM
githubUrlhttps://github.com/neomjs/neo/issues/20911
authorneo-opus-grace
commentsCount1
parentIssue20667
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[x] 20681 Row geometry: an extra height per row that the estimate ignores
blocking[]
closedAtNov 17, 2026, 3:11 PM

Row geometry: a row's extra height lies below its cells

Closed v14.0.0/archive-v14-0-0-chunk-2 enhancementaigrid
neo-opus-grace
neo-opus-grace commented on Nov 14, 2026, 12:45 AM

Blocked by: #20681, closed on 17 Nov by #21243 (the extra height this ticket renders below the cells).

Context

#20681 gives content-sized rows an extra height per row: a row's slot becomes its measured height (or the estimate) plus its extra, and the offsets follow. The extra is room for something that is not a cell, such as an inline form or a notes strip under a row. #20681 leaves "any component that renders the extra part" out of scope. But the row itself still renders at the full slot height, so its cells fill the extra.

The Problem

  • Row#createVdom sets the row's inline height to rowGeometry.heightAt(rowIndex) (src/grid/Row.mjs:439), and .neo-grid-cell takes height: inherit with align-items: center (resources/scss/src/grid/Body.scss:54–64). A row measured at 32px with an extra of 300px renders 332px-tall cells in every body, with their text centered 166px down.
  • The row's box (contain: strict, Body.scss:42–46) covers the extra too, so a click there is a click on that row (Body#onRowClick, src/grid/Body.mjs:1522–1536), and hover paints it.
  • A consumer cannot correct this from outside. Body#getRowClass returns classes only (Body.mjs:1379), and a body builds every row from the fixed Neo.grid.Row class (Body.mjs:794).

The Architectural Reality

  • RowGeometry is the one height owner of a view, and a row's slot is [offsetAt(i), offsetAt(i + 1)). Row#hasStaleGeometry compares style.height with heightAt(rowIndex) (Row.mjs:750–761).
  • #21243 keeps the extras by record id (RowGeometry#setExtraHeights) and folds them into heightAt. Nothing reads an extra by row index yet.
  • View#measureRowHeights reads each wrapped cell's text container plus the cell's padding and borders, never the row box. A row rendered without its extra cannot feed back into its measured height.
  • Rows take clicks through a .neo-grid-row delegate (Body.mjs:367–371), so room outside every row box belongs to the body.
  • Design authority: n/a — adds a capability. Rows without an extra and fixed-height grids are unchanged.

The Fix

  • RowGeometry#extraHeightAt(index): the extra of the row at an index, 0 without one. It reads the record at that index in the store's current order, as the full pass does, so no pass keeps a second per-index array.
  • Row#createVdom renders the row at heightAt(rowIndex) - extraHeightAt(rowIndex). Its transform stays at offsetAt(rowIndex), so the extra is empty room below the row, inside its slot.
  • Row#hasStaleGeometry compares the same height.

Contract Ledger

Target Surface Source of Authority Proposed Behavior Fallback Docs Evidence
Neo.grid.RowGeometry#extraHeightAt(index) this ticket the extra of the row at an index 0 for no extra or an index out of range JSDoc test/playwright/unit/grid/RowGeometry.spec.mjs
Neo.grid.Row rendered height this ticket, #20681 the row's height without its extra unchanged for rows without an extra and for fixed-height grids JSDoc of createVdom the content-sized grid block of RowGeometry.spec.mjs (expectRowsOnGeometry)

Decision Record impact: none.

Acceptance Criteria

  • A record measured at 32px with an extra of 300px renders its row at height: 32px, and the next row's offset is 332 (unit).
  • hasStaleGeometry() is false right after that render and true once the record's measured height changes. A change of only its extra leaves its own row current while the rows below move (unit).
  • With locked start and end columns, the cells of a row with an extra keep the row's height without the extra in all three bodies, and a click inside the extra fires no rowClick (component or e2e spec).
  • Fixed-height grids and content-sized rows without extras render as before (the existing RowGeometry and content-sized specs, unit and e2e, stay green).

Out of Scope

  • What renders inside the extra, and which rows get one (#20681's own scope).

Related

#20681 · #21243 · #20667 · #19661, #19662, #19663 (content-sized rows).

Live latest-open + closed sweep: the latest 20 open (43 open, orange band; filed as a leaf of #20667) and all-state searches ("extra height", "row height cells stretch") at 2026-11-13T23:43Z: only #20681 and the closed content-sized work; no equivalent or prior exclusion found. A2A in-flight claim sweep: the last 30 messages over all read states (22:40–23:38Z) hold no claim on this scope. MC sweep: "expanded row height skews the unseen row estimate, cells stretch" (2026-11-13, 8 results) found only the decision that filed #20681; at filing, one query on both symptoms ("…the row's cells stretch over its extra height, and a press inside a grid nested in another grid drag-scrolls the outer grid", 10 results) found no prior decision. Own-assignment sweep: 2 open, none overlapping.

Intake, 17 Nov: the drift probe fired (#21243, #21150 and #20975 touched Row, RowGeometry, Body and the unit spec since filing), so the full gate ran. Valid as written, sharpened above. Prescription checked: src/grid/Row.mjs — owns the concern: the row's vdom height is the box that stretches the cells and takes the clicks, so CSS alone cannot free the extra. Parent #20667 is epic-reviewed (comment). No open PR touches Row, RowGeometry, Body, View or Body.scss. AC-3 runs as an e2e spec in test/playwright/e2e/grid, which RUN_PATHS covers, on a fixture of its own.

Ownership: self-assigned (@neo-opus-grace). No good first issue or help wanted: it is owned, and it should land in the same release as #20681.

Origin Session ID: f576135c-7b1a-429b-8f66-4762c0094b18

Retrieval Hint: "row extra height renders below its cells; cells keep the measured height"

🖖 Grace (Claude Opus 5.5, Claude Code)

tobiu referenced in commit 9b355c7 - "feat(grid): a row renders without its extra height, which stays room below its cells (#20911) (#21251) on Nov 17, 2026, 3:11 PM
tobiu closed this issue on Nov 17, 2026, 3:11 PM