LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtNov 20, 2026, 10:43 PM
updatedAtNov 21, 2026, 12:12 AM
githubUrlhttps://github.com/neomjs/neo/issues/21671
authorneo-opus-vega
commentsCount1
parentIssue20874
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 21, 2026, 12:12 AM

The now line breaks at each row and misses the header's line by 1 px

neo-opus-vega
neo-opus-vega commented on Nov 20, 2026, 10:43 PM

Owned by Vega: the line came in with my #21315 (#20890), and the fix touches the grid body's row separator two days before the cut, so no contributor labels.

Context

The operator, 20 Nov, from the frames of PR #21659 (a Gantt chart): "the red line gets cut by every row border. it does NOT match the position inside the column headers." Reproduced on dev (2d028b974d) in both families that draw the line, with timeAxis.now set inside the range at runtime, at 1440 × 900:

Example now Header line x Body line x Body segments Gap at each row border
examples/gantt/basic 2026-11-14T12:00Z 1171.39 1170.39 5, one per row 1 px
examples/scheduler/basic 2026-11-09T12:00Z 536 535 7, one per row 1 px

The header's line is the right one: Sat 14 spans 1086 to 1258.8, so 12:00 is at 1172.4, the header line's centre. The body's line sits 1 px to its left. Between the header line's bottom (119) and the first body segment's top (121) there is a 2 px seam as well.

The Problem

The line marks one instant, so it should read as one straight line from the header mark down to the last row. Instead it reads as stacked dashes, shifted against the header mark. These are two defects:

  1. The body draws one segment per row, and every row border interrupts it.
  2. The header's coordinate origin sits 1 px right of the body's. That moves every element the header positions (ticks, non-working bands, the now line) against its body counterpart.

#20890's unit spec pins the left values, which agree, so only rendered geometry shows either defect.

The Architectural Reality

  • src/timeline/Column.mjs:757-765 pushes one .neo-timeline-now into each row's track (${trackId}__now), positioned absolute with top: 0; bottom: 0 (resources/css/src/timeline/Column.css:37-47).
  • The row border is the timeline cell's own border-bottom: 1px (.neo-grid-cell.neo-timeline-cell). That cell clips (overflow: hidden, contain: content), so a segment can never cover it.
  • A single body-level line cannot replace the segments. Each row is its own stacking context (.neo-grid-row: transform, contain: strict) with an opaque cell background: a line below the rows is hidden, and a line above them crosses bar titles. Inside each track the bars sit at z-index: 1, above the line's 0.
  • src/timeline/TimeAxisHeader.mjs:775-780 draws the header's own line in the minor row at the same nowOffset. The header element (.neo-timeline-header.neo-grid-header-button) has border-left: 1px, so its rows start at x 222 while the body's track starts at 221.
  • Design authority: #20890, point 4: "The timeline family marks the current time: a line through the body at dateToOffset(now) and a mark on that tick in the header, for the scheduler and the Gantt chart alike." Both sides take one value, TimeAxis#getNowOffset ("Returns the pixel offset of {@link #now}"), so one x is intended. The constraint to keep is in Column.css: "drawn beneath the bars so it never crosses a title".

The Fix

  1. Rows: draw the timeline cell's row separator inside its padding box, for example as an inset bottom shadow instead of border-bottom. Each row's segment then covers it, and the segments meet. Row heights and the locked columns' separators must line up as before.
  2. Header origin: start the header's rows where the body's track starts. Either drop the timeline header button's left border and keep the separator on the locked side, or offset its rows by the border width. Ticks, non-working bands and the now line then share the body's x.

Acceptance Criteria

  • With now inside the range, the body's now line has no gap at any row border, in examples/gantt/basic and examples/scheduler/basic. (Amended 20 Nov while building: the 2 px header/body seam stays. It is the header button's and the grid header toolbar's bottom borders, which span every column and clip their content; the line meets them at the same x on both sides.)
  • The body line's rendered x equals the header line's within 0.5 px, and both centre on now against its tick (12:00 falls on the tick's midpoint), in neo-light and neo-dark.
  • A header tick's edge and a non-working band's edge line up with the body's within 0.5 px (the scheduler with showNonWorkingTime).
  • The line stays beneath the bars: a bar crossing now keeps its title uncrossed.
  • An e2e spec under test/playwright/e2e/ pins the first two ACs from rendered rects.
  • Look: before/after frames at the header/body seam and across three rows, in both neo themes, on the pull request.

Out of Scope

  • The line's behaviour when now is outside the range, and now: null reading the viewer's clock (#20890).
  • The header's tick formats, and the design of non-working bands.

Related

#20874 (parent) · #20890 (introduced the line) · PR #21659 (where the operator saw it)

Live latest-open + closed sweep: latest 20 open, plus open and closed searches (now line OR now marker OR current time line timeline), at 2026-11-20T21:40Z and rechecked at 21:42Z. No equivalent. The closed same-surface hit #20890 introduced the line; its Out of Scope excludes nothing here. Backlog band: 83 open, red, so this files as a leaf of the owning epic #20874 (24 subs). A2A in-flight sweep: the latest 30 messages in all read states back to 20:57Z, rechecked at 21:42Z; no claim on the now line. MC sweep: "red now line cut by row borders, now marker misaligned with header, timeline current time line": 5 results, none on this line, no prior decision. Own-assignment sweep: 8 open; none on the timeline's now line.

Decision Record impact: none.

Origin Session ID: 1560fd9e-518f-4fc4-8338-9b9aaf748f4e

Retrieval Hint: "timeline now line cut by row borders; header now line 1 px off the body; neo-timeline-now per-row segments; timeline header border-left origin"

tobiu referenced in commit 1872646 - "fix(timeline): the now line runs straight through every row, under the header's mark (#21671) (#21672) on Nov 21, 2026, 12:12 AM
tobiu closed this issue on Nov 21, 2026, 12:12 AM