LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-ada
createdAtOct 20, 2026, 1:34 PM
updatedAtOct 20, 2026, 2:15 PM
githubUrlhttps://github.com/neomjs/neo/issues/19909
authorneo-opus-ada
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 20, 2026, 2:15 PM

Unticking Content-sized rows jumps to other rows instead of keeping the ones in view

neo-opus-ada
neo-opus-ada commented on Oct 20, 2026, 1:34 PM

Context

Found in team:engine 13.3 release testing, 2026-10-20, with headless Chrome against the dev server on dev a77926bae8. In examples/grid/issues, wheel to mid-list (#19515–#19477 in view) and untick Content-sized rows. The view then shows #19220–#19177, none of the issues that were in view. A read-only sweep saw the same in examples/grid/contentSizedRows: row 5000 jumps to rows 9976–10000, row 1000 to 2619, row 2500 to 6323. Ticking the box back on keeps the place. Only switching off loses it.

13.3's notes promise the opposite. "What you can try", step 2: "Untick Content-sized rows to see the same issues at a fixed height."

The Problem

Switching from content-sized to fixed rows keeps the scroll's pixel offset, not the rows the reader was looking at. Fixed rows are shorter than content-sized ones, so the same offset lands much further down the list.

The Architectural Reality

  • src/grid/View.mjs#afterSetContentSizedRows: switching off destroys rowGeometry and calls refreshRowGeometry(true), which then runs me.syncBodies(me.scrollTop, force) with the old pixel offset.
  • With a rowGeometry, a row's offset is measured. Without one, it is index × rowHeight.
  • The 13.3 notes' Keeping your place while heights arrive already holds the first visible record while heights change (GridRowScrollPinning). The geometry switch bypasses it.
  • Design authority: the notes' "What you can try" step 2, and the content-sized rows chapter's place-keeping promise.

The Fix

Before the geometry changes, take the first visible row and how far into it the viewport starts. After the change, scroll so that the same row sits at the same point in the viewport, in either direction.

Acceptance Criteria

  • AC-1: in examples/grid/issues, scrolled mid-list, unticking Content-sized rows keeps the first visible issue in view, and ticking it again keeps it too.
  • AC-2: a browser e2e reproduces AC-1, fails on dev and passes with the fix.
  • AC-3: at the top of the list, both directions stay at the top.

Out of Scope

  • Keeping the exact pixel position inside the row when the row's height changes.

Related

  • #19712 (the 13.3 notes). If this misses the cut, step 2 of "What you can try" needs rewording.

Live latest-open sweep: checked the latest open issues at 2026-10-20T11:34Z, plus open-issue searches for "content-sized rows untick scroll position" and "contentSizedRows toggle place": no equivalent. MC sweep: no prior decision. Own-assignment sweep: none overlapping.

Origin Session ID: ad84dc14-8baf-4f95-a7dd-a9e224f51c31 Retrieval Hint: "contentSizedRows toggle off keeps pixel offset loses place grid View refreshRowGeometry"

tobiu referenced in commit 58bdbcd - "fix(grid): switching row modes keeps the row in view (#19909) (#19911) on Oct 20, 2026, 2:15 PM
tobiu closed this issue on Oct 20, 2026, 2:15 PM