Context
Outside feedback on the 13.3.0 issues showcase reported that "with a filter visibly set, all values were still shown". The reporter could not reproduce it (defect-note 4aa7bdd6 by @neo-opus-grace, next to #19952–#19954). While reproducing it, I found a recipe that leaves every center header label over the wrong column. Under "Type" a reader sees the Summary text, and under "Area" the Type chips, so a filtered column reads as unfiltered. That makes it a candidate explanation for the report, not one confirmed with the reporter.
The Problem
Reproduced on https://neomjs.com/dist/production/examples/grid/issues/index.html (13.3.0, Chromium, an 800×600 viewport so the center region overflows):
- Click into "Search records".
- Press Tab until the Area header button has focus, then Tab once more. Focus moves to its menu button ("Filter Area").
- The center header row shifts left; the body does not.
Measured: the center .neo-grid-header-toolbar has scrollLeft 289, while .neo-grid-horizontal-scrollbar, which places the body, stays at 0. An automated click that scrolled the Type menu button into view produced the same split (about 140 px). Whether a later body scroll re-aligns them is untested.
The Architectural Reality
- The horizontal position has one source, the grid's horizontal scrollbar. The main-thread
GridHorizontalScrollSync copies the scrollbar's scrollLeft onto the center header toolbar, and ScrollManager#onContainerScroll mirrors it into headerToolbar.scrollLeft for the SortZone's math.
- Nothing flows the other way. The center header toolbar is an overflow container, so when focus lands on a header element outside the center clip, the browser scrolls that toolbar by itself. The scrollbar and the body stay where they were.
- Design authority:
src/grid/HorizontalScrollbar.mjs (endWidth_) — "Neo.main.addon.GridHorizontalScrollSync copies this element's scrollLeft verbatim onto the center header toolbar — that 1:1 mapping is only exact when scrollport equals the center clip width." A header toolbar that scrolls on its own breaks that 1:1 mapping.
src/grid/header/plugin/Menu.mjs calls this.owner.focus() when its menu closes, so a header whose button sits outside the clip may trigger the same native scroll. This is a hypothesis; I haven't tested it.
The Fix
Keep the scrollbar the single source. When the center header toolbar scrolls natively, move the horizontal scrollbar to the same position, so the header and body move together and the focused column comes into view. That is what a keyboard user needs. It belongs in the main-thread GridHorizontalScrollSync, beside the existing copy. Equal values must not echo back.
Acceptance Criteria
Out of Scope
- A column's own value menu listing every value of that column. That is by design (the counts follow the other filters), and it is the other reading of the report; it is recorded on the defect-note.
- #19952, #19953 and #19954.
Related
#19953 · #19952 · #19954 · defect-note 4aa7bdd6
Live latest-open sweep: checked the latest 20 open issues at 2026-10-21T12:42:33Z; no equivalent found (#19952–#19954 cover other symptoms). Exact search GridHorizontalScrollSync: only #17844, unrelated.
A2A sweep: the latest 12 messages hold no claim on this symptom.
MC sweep: "grid header columns misaligned with body after focus header scrolls horizontal scrollbar out of sync", 5 results: earlier multi-body scroll-sync work; no prior decision about focus-driven header scrolling.
Own-assignment sweep: 6 open, none overlapping.
Origin Session ID: 93bb60cd-9a62-43b7-a8e0-25091f9af03f
Retrieval Hint: "grid header toolbar scrolls on focus, header body misaligned, GridHorizontalScrollSync one-way"
Context
Outside feedback on the 13.3.0 issues showcase reported that "with a filter visibly set, all values were still shown". The reporter could not reproduce it (defect-note
4aa7bdd6by @neo-opus-grace, next to #19952–#19954). While reproducing it, I found a recipe that leaves every center header label over the wrong column. Under "Type" a reader sees the Summary text, and under "Area" the Type chips, so a filtered column reads as unfiltered. That makes it a candidate explanation for the report, not one confirmed with the reporter.The Problem
Reproduced on https://neomjs.com/dist/production/examples/grid/issues/index.html (13.3.0, Chromium, an 800×600 viewport so the center region overflows):
Measured: the center
.neo-grid-header-toolbarhasscrollLeft289, while.neo-grid-horizontal-scrollbar, which places the body, stays at 0. An automated click that scrolled the Type menu button into view produced the same split (about 140 px). Whether a later body scroll re-aligns them is untested.The Architectural Reality
GridHorizontalScrollSynccopies the scrollbar'sscrollLeftonto the center header toolbar, andScrollManager#onContainerScrollmirrors it intoheaderToolbar.scrollLeftfor the SortZone's math.src/grid/HorizontalScrollbar.mjs(endWidth_) — "Neo.main.addon.GridHorizontalScrollSynccopies this element'sscrollLeftverbatim onto the center header toolbar — that 1:1 mapping is only exact when scrollport equals the center clip width." A header toolbar that scrolls on its own breaks that 1:1 mapping.src/grid/header/plugin/Menu.mjscallsthis.owner.focus()when its menu closes, so a header whose button sits outside the clip may trigger the same native scroll. This is a hypothesis; I haven't tested it.The Fix
Keep the scrollbar the single source. When the center header toolbar scrolls natively, move the horizontal scrollbar to the same position, so the header and body move together and the focused column comes into view. That is what a keyboard user needs. It belongs in the main-thread
GridHorizontalScrollSync, beside the existing copy. Equal values must not echo back.Acceptance Criteria
scrollLeftequals the horizontal scrollbar's.scrollLeftmismatch after tabbing to the Area menu button) and green at head.Out of Scope
Related
#19953 · #19952 · #19954 · defect-note
4aa7bdd6Live latest-open sweep: checked the latest 20 open issues at 2026-10-21T12:42:33Z; no equivalent found (#19952–#19954 cover other symptoms). Exact search
GridHorizontalScrollSync: only #17844, unrelated. A2A sweep: the latest 12 messages hold no claim on this symptom. MC sweep: "grid header columns misaligned with body after focus header scrolls horizontal scrollbar out of sync", 5 results: earlier multi-body scroll-sync work; no prior decision about focus-driven header scrolling. Own-assignment sweep: 6 open, none overlapping.Origin Session ID: 93bb60cd-9a62-43b7-a8e0-25091f9af03f
Retrieval Hint: "grid header toolbar scrolls on focus, header body misaligned, GridHorizontalScrollSync one-way"