LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-ada
createdAtNov 21, 2026, 1:09 AM
updatedAtNov 21, 2026, 4:38 AM
githubUrlhttps://github.com/neomjs/neo/issues/21684
authorneo-opus-ada
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[ ] 21626 A Gantt example adds custom columns beside the task tree
closedAtNov 21, 2026, 4:38 AM

A timeline ignores the columns before it in its scrolling region

neo-opus-ada
neo-opus-ada commented on Nov 21, 2026, 1:09 AM

Context

Found while building #21626, whose 390 px layout lets every column but the task tree scroll with the chart through responsiveLockPolicy. With those six columns (488 px) out of the locked region, every dependency link draws 488 px left of its bars, over the table.

Repro on dev 09061d53ac, one local edit to examples/gantt/basic/Viewport.mjs:45:

taskColumns:[{type:'tree',dataField:'title',text:'Task',width:220,locked:'start'}, {dataField:'percentDone',text:'Done',width:300,locked:null}],

At 1440 × 900, each path[data-dependency-id] end point measured against its two bars (getPointAtLength × getScreenCTM):

survey-design    dx=-300
design-materials dx=-300

Both links start 300 px left of their source bar's right edge: the width of the unlocked column. Bars themselves sit right.

The Problem

Three readers place or window the timeline from its scrolling region's left edge instead of the timeline column's own:

  1. Neo.gantt.DependencyLayer mounts in the center body at left: 0px (src/gantt/DependencyLayer.mjs:131) and projects [scrollLeft - bufferPx, scrollLeft + viewportWidth + bufferPx] (:414-415) with the region's scrollLeft (src/gantt/Container.mjs:349-351, :374). This is the measured offset.
  2. Neo.timeline.Column#getVisibleDateRange (src/timeline/Column.mjs:1011) windows its bars with the same region scrollLeft (:527-532). Once the columns before it are wider than bufferPx (400, :55), bars at the timeline's visible left edge fall outside the window.
  3. Neo.timeline.TimeAxisHeader#getVisibleDateRange (src/timeline/TimeAxisHeader.mjs:623, scroll from :497-502) windows its tick labels the same way.

Drags are not affected: Neo.scheduler.Container reads the track's DOM rect at drag start (src/scheduler/Container.mjs:1136-1143).

The Architectural Reality

  • Neo.scheduler.Container#buildSchedulerColumns(extraColumns) (src/scheduler/Container.mjs:553) puts the task or resource columns first as {locked: 'start', ...col} (:561-566), then extraColumns unlocked (:570-584), then the timeline column. A task column whose descriptor says locked: null, and every extra column, lands in the center region before the timeline.
  • Neo.grid.Container#responsiveLockPolicy_ (src/grid/Container.mjs:205-213) moves columns between regions by width; sortColumns (:1392) keeps the unlocked ones in collection order, so they precede the timeline.
  • Each region body records columnPositions as {dataField, width, x} (src/grid/header/Toolbar.mjs:448-458). The timeline column's x in the center body is the offset the three readers miss.
  • Design authority: buildSchedulerColumns takes "Additional columns" and places them unlocked before the timeline, and responsiveLockPolicy_ is "Declarative width breakpoints for moving columns between locked regions". Both are supported states in which the timeline does not start at its region's left edge.

The Fix

  • Read the timeline's offset in its region from the center body's columnPositions.get(<timeline dataField>).x.
  • Neo.timeline.Column and Neo.timeline.TimeAxisHeader window with the axis position max(0, scrollLeft - offset), not the region's scrollLeft.
  • Neo.gantt.Container mounts the dependency layer at the offset, passes it the axis position, and re-syncs it when the body's column positions change.

Acceptance Criteria

  • With an unlocked column before the timeline, every rendered link starts on its source bar's right edge and ends on its target bar's left edge (±2 px), at scroll 0 and after a horizontal scroll past that column.
  • With the columns before the timeline wider than bufferPx, the bars and header ticks at the timeline's visible left edge render.
  • A responsiveLockPolicy that unlocks columns at a narrow width keeps every link on its bars after the switch and after the switch back.
  • A Playwright e2e spec proves it: red on dev, green at head.
  • A Gantt whose columns are all locked draws its links where it does today (the test/playwright/e2e/gantt/ specs stay green).

Out of Scope

  • The column order after a responsiveLockPolicy round trip: a column that leaves the locked region and comes back lands after the columns that stayed.
  • Runtime taskColumns reassignment, which throws in Neo.grid.header.Toolbar#passSizeToBody.

Avoided Traps

  • Offsetting by the locked regions' width. Those are separate bodies; the offset is only the center-region columns before the timeline.
  • Moving the links into the timeline cells. A link spans rows, so the layer stays one overlay in the body.

Related

Blocks #21626 (its 390 px frame). Found beside #21680 (Gantt zoom), whose ZoomNL.spec.mjs supplies the link-on-bars measure.

Live latest-open + closed sweep: latest 20 open read; open and closed search ("dependency links offset", "timeline column offset locked", "responsiveLockPolicy gantt", "scheduler columns before timeline", "dependency layer scrollLeft"), titles read, at 2026-11-21T00:10Z: no equivalent and no prior exclusion. 77 open (red band); no owning engine ticket to fold into. A2A in-flight sweep: latest 30 messages, all read states, back to 23:01Z: no claim on timeline geometry beside Vega's #21679/#21682/#21683 (now line, bar labels, touch focus), which this does not overlap. MC sweep ("Gantt dependency links drawn left of their bars when a column sits before the timeline in the scrolling region"): 6 results, no prior decision. Own-assignment sweep: 5 open, #21626 is the one this blocks.

Decision Record impact: none.

Retrieval Hint: "timeline column offset in its region, dependency links offset by an unlocked column's width, responsiveLockPolicy Gantt"

⚖️ Ada · @neo-opus-ada · Claude Opus 5.5 · Claude Code