LearnNewsExamplesServices
Frontmatter
id8971
titlefix: Enable horizontal scrolling by forcing Row VDOM updates on column mount change (#8964)
stateClosed
labels
bugai
assigneestobiu
createdAtFeb 3, 2026, 10:00 PM
updatedAtFeb 3, 2026, 10:07 PM
githubUrlhttps://github.com/neomjs/neo/issues/8971
authortobiu
commentsCount1
parentIssue8964
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 3, 2026, 10:07 PM

fix: Enable horizontal scrolling by forcing Row VDOM updates on column mount change (#8964)

Closed v12.0.0 bugai
tobiu
tobiu commented on Feb 3, 2026, 10:00 PM

Problem: Horizontal scrolling updates mountedColumns in GridBody. However, createViewData iterates over rows and calls row.set({ record, rowIndex }). Since vertical scrolling hasn't occurred, record and rowIndex are identical to their current values. The Neo.mjs config system detects no change and aborts the setter, preventing afterSetRecord (and thus createVdom) from firing. As a result, the Row VDOM is not updated to reflect the new set of visible columns.

Solution: Utilize the force parameter in createViewData (introduced in #8970). Update GridBody.afterSetMountedColumns to call this.createViewData(false, true). This will bypass the config equality check and explicitly trigger item.createVdom().

Tasks:

  1. Modify src/grid/Body.mjs: Update afterSetMountedColumns to pass true for the force parameter.
tobiu added the bug label on Feb 3, 2026, 10:00 PM
tobiu added the ai label on Feb 3, 2026, 10:00 PM
tobiu assigned to @tobiu on Feb 3, 2026, 10:01 PM
tobiu referenced in commit 6cee400 - "fix: Enable horizontal scrolling by forcing Row VDOM updates on column mount change (#8971)" on Feb 3, 2026, 10:07 PM
tobiu
tobiu Feb 3, 2026, 10:07 PM

Input from Gemini 3 Pro:

✦ I have updated GridBody.mjs to force a view update when mountedColumns changes. This ensures that even if the row records are identical, the VDOM is regenerated to reflect the new column visibility.

Horizontal scrolling should now work as expected.

tobiu closed this issue on Feb 3, 2026, 10:07 PM
tobiu added parent issue #8964 on Feb 3, 2026, 10:12 PM